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. ttungbmt/filament-ban

ActiveLibrary

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 1mo 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 64% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity58

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

1488d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d2098b66f280a2f37902016a5ea43bfb3ef72c03b804ac546921353b3905bad8?d=identicon)[ttungbmt](/maintainers/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

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)

PHPackages © 2026

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