jeffersongoncalves/filament-ban
Larablocks Analysis
jeffersongoncalves/filament-ban works with Laravel 11, 12 and 13 (latest release 3.1.0, Sep 23, 2026).
Recommendation checks
PromisingPromising: maintained and up to date, meets 2 of 4 checks; not yet widely used.
- Works with Laravel 13, the current version
- Released in the last 12 months (Sep 23, 2026)
- 419 downloads a month (needs 10,000)
- 3 GitHub stars (needs 100)
State
Actively maintained- Last stable release: Sep 23, 2026.
- 15 releases in the last 12 months.
- First released: Jun 24, 2026.
- Monthly downloads: 419.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 28, 2026.
| Install | |
|---|---|
composer require jeffersongoncalves/filament-ban |
|
| Latest Version: | 3.1.0 |
| PHP: | ^8.2 |
| Laravel: | 11 · 12 · 13 |
| License: | MIT |
| Last Updated: | Nov 24, 2026 |
| Links: | GitHub · Packagist |

Filament Ban
Ban and unban any Eloquent model directly from your Filament panel. This package wraps cybercog/laravel-ban and ships ready-to-use actions, bulk actions, an icon column and a status filter for your Filament resources and tables. Inspired by cybercog/laravel-nova-ban.
Version Compatibility
| Filament | Laravel | PHP | Branch | Version |
|---|---|---|---|---|
| v3 | 10 / 11 | 8.1+ | 1.x |
^1.0 |
| v4 | 11 / 12 | 8.2+ | 2.x |
^2.0 |
| v5 | 11.28 / 12 / 13 | 8.2+ | 3.x |
^3.0 |
All tags use plain SemVer without the v prefix (e.g. 3.0.0).
Installation
You can install the package via composer:
composer require jeffersongoncalves/filament-ban
Publish and run the cybercog/laravel-ban migration (creates the bans table):
php artisan vendor:publish --provider="Cog\Laravel\Ban\Providers\BanServiceProvider" --tag="migrations"
php artisan migrate
Then add a nullable banned_at timestamp column to each bannable model's table:
Schema::table('users', function (Blueprint $table) {
$table->timestamp('banned_at')->nullable();
});
Preparing your model
Make any Eloquent model bannable by implementing the contract and using the trait:
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;
}
Usage
Actions
Add ban / unban buttons to a resource table row. Each action shows only when relevant
(Ban when the record is not banned, Unban when it is). BanAction opens a modal where
you can set an optional comment and an optional expiration date.
use JeffersonGoncalves\Filament\Ban\Actions\BanAction;
use JeffersonGoncalves\Filament\Ban\Actions\UnbanAction;
public function table(Table $table): Table
{
return $table
->recordActions([
BanAction::make(),
UnbanAction::make(),
]);
}
Bulk actions
use JeffersonGoncalves\Filament\Ban\Actions\BanBulkAction;
use JeffersonGoncalves\Filament\Ban\Actions\UnbanBulkAction;
$table->toolbarActions([
BanBulkAction::make(),
UnbanBulkAction::make(),
]);
Column
Display the current ban status as a boolean icon:
use JeffersonGoncalves\Filament\Ban\Tables\Columns\BanColumn;
$table->columns([
BanColumn::make(),
]);
Filter
Filter records by ban status (uses the onlyBanned / withoutBanned scopes):
use JeffersonGoncalves\Filament\Ban\Tables\Filters\BanFilter;
$table->filters([
BanFilter::make(),
]);
Development
# Run static analysis
composer analyse
# Run tests
composer test
# Format code
composer format
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
Shared base classes and helpers for jeffersongoncalves Filament plugins (Plugin...
A reusable Filament infolist section that displays created/updated (and any othe...
This Filament package provides a simple and elegant way to implement cookie cons...
Automatically refresh the Filament sidebar navigation when certain events occur,...
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| 3.1.0 | ^8.2 | MIT | |
| 3.0.3 | ^8.2 | MIT | |
| 3.0.2 | ^8.2 | MIT | |
| 3.0.1 | ^8.2 | MIT | |
| 3.0.0 | ^8.2 | MIT | |
| 2.1.0 | ^8.2 | MIT | |
| 2.0.3 | ^8.2 | MIT | |
| 2.0.2 | ^8.2 | MIT | |
| 2.0.1 | ^8.2 | MIT | |
| 2.0.0 | ^8.2 | MIT | |
| 1.1.0 | ^8.1 | MIT | |
| 1.0.3 | ^8.1 | MIT | |
| 1.0.2 | ^8.1 | MIT | |
| 1.0.1 | ^8.1 | MIT | |
| 1.0.0 | ^8.1 | MIT |