PHPackages                             ttungbmt/filament-ban - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. ttungbmt/filament-ban

ActiveLibrary[Admin Panels](/categories/admin)

ttungbmt/filament-ban
=====================

This is my package filament-ban

v1.0.0(4y ago)111.1k3[6 issues](https://github.com/ttungbmt/filament-ban/issues)[2 PRs](https://github.com/ttungbmt/filament-ban/pulls)MITPHPPHP ^8.1

Since Apr 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ttungbmt/filament-ban)[ Packagist](https://packagist.org/packages/ttungbmt/filament-ban)[ Docs](https://github.com/ttungbmt/filament-ban)[ RSS](/packages/ttungbmt-filament-ban/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)Dependencies (9)Versions (3)Used By (0)

Laravel Filament Ban
====================

[](#laravel-filament-ban)

Introduction
------------

[](#introduction)

Behind the scenes [cybercog/laravel-ban](https://github.com/cybercog/laravel-ban) is used.

[![ban_user](https://user-images.githubusercontent.com/12232155/162865596-f96984cd-6e82-41c6-abfa-367eb49247a8.png)](https://user-images.githubusercontent.com/12232155/162865596-f96984cd-6e82-41c6-abfa-367eb49247a8.png)

Installation
------------

[](#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

[](#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

[](#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-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
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Truong Thanh Tung](https://github.com/ttungbmt)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1535d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12232155?v=4)[Trương Thanh Tùng](/maintainers/ttungbmt)[@ttungbmt](https://github.com/ttungbmt)

---

Top Contributors

[![ttungbmt](https://avatars.githubusercontent.com/u/12232155?v=4)](https://github.com/ttungbmt "ttungbmt (9 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (8 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (8 commits)")

---

Tags

laravelttungbmtfilament-ban

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/ttungbmt-filament-ban/health.svg)

```
[![Health](https://phpackages.com/badges/ttungbmt-filament-ban/health.svg)](https://phpackages.com/packages/ttungbmt-filament-ban)
```

###  Alternatives

[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.3M42](/packages/spatie-laravel-pdf)[filament/support

Core helper methods and foundation code for all Filament packages.

2328.3M217](/packages/filament-support)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3913.7k](/packages/rawilk-profile-filament-plugin)[guava/filament-knowledge-base

A filament plugin that adds a knowledge base and help to your filament panel(s).

210140.2k1](/packages/guava-filament-knowledge-base)[mradder/filament-logger

Audit logging, activity tracking, exports, alerts, and dashboards for Filament admin panels.

2310.5k](/packages/mradder-filament-logger)[caresome/filament-neobrutalism-theme

A neobrutalism theme for FilamentPHP admin panels

334.9k1](/packages/caresome-filament-neobrutalism-theme)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
