New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

ttungbmt/filament-ban

This is my package filament-ban
1,113 11

Larablocks Analysis

ttungbmt/filament-ban works with Laravel 9 (latest release v1.0.0, Apr 12, 2022), which reached end of life on Feb 6, 2024: no more fixes, even for security.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 9, past end of life since Feb 6, 2024
  • No release in the last 12 months (last: Apr 12, 2022)
  • 0 downloads a month (needs 10,000)
  • 11 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Apr 12, 2022.
  • No releases in the last 12 months.
  • First released: Apr 12, 2022.
  • 8 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 27, 2026.

Install
composer require ttungbmt/filament-ban
Latest Version:v1.0.0
PHP:^8.1
Laravel:9
License:MIT
Last Updated:Jul 9, 2024
Links: GitHub  ·  Packagist
Maintainer: ttungbmt

Laravel Filament Ban

Introduction

Behind the scenes cybercog/laravel-ban is used.

ban_user

Installation

You can install the package via composer:

composer require ttungbmt/filament-ban

You can publish and run the migrations with:

php artisan vendor:publish --tag="filament-ban-migrations"
php artisan migrate

You can publish the config file with:


php artisan vendor:publish --tag="filament-ban-config"

Prepare bannable model

use Cog\Contracts\Ban\Bannable as BannableContract;
use Cog\Laravel\Ban\Traits\Bannable;
use Illuminate\Foundation\Auth\User as Authenticatable;

class User extends Authenticatable implements BannableContract
{
    use Bannable;
}

Prepare bannable model database table

Bannable model must have nullable timestamp column named banned_at. This value used as flag and simplify checks if user was banned. If you are trying to make default Laravel User model to be bannable you can use example below.

Register Ban Actions in Nova Resource

Register Ban and Unban actions inside your Model's Resource.

    public static function table(Table $table): Table
    {
        return $table
            ->prependBulkActions([
                \FilamentPro\FilamentBan\Actions\Ban::make('ban'),
                \FilamentPro\FilamentBan\Actions\Unban::make('unban'),
            ]);
    }

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

670,032,257 9,703
laravel/framework

The Laravel Framework.

640,572,096 35,338
laravel/tinker

Powerful REPL for the Laravel framework.

546,909,908 7,440
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

465,816,364 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

431,187,642 4,660

Version History

Version Released PHP Laravel License
v1.0.0 ^8.1 ^9.0 MIT