PHPackages                             imnpc/filament-bandel - 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. imnpc/filament-bandel

ActiveLibrary

imnpc/filament-bandel
=====================

Banned Model with Filament Bandel

6.0.0(1mo ago)024↓100%MITPHPPHP ^8.1

Since Aug 7Pushed 1mo agoCompare

[ Source](https://github.com/imnpc/filament-bandel)[ Packagist](https://packagist.org/packages/imnpc/filament-bandel)[ Docs](https://github.com/widiu7omo/filament-bandel)[ RSS](/packages/imnpc-filament-bandel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (7)Versions (5)Used By (0)

Laravel Filament Bandel
=======================

[](#laravel-filament-bandel)

This code forked from - [Truong Thanh Tung Filament Ban](https://github.com/ttungbmt/filament-ban.git)

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

[](#introduction)

We are using [laravel-ban by cybercog](https://github.com/cybercog/laravel-ban) on the background.

[![single_ban_user](./screenshots/single.png)](./screenshots/single.png)[![bulk_ban_user](./screenshots/bulk.png)](./screenshots/bulk.png)

Requirement
-----------

[](#requirement)

- Laravel 10
- FilamentPHP

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

[](#installation)

You can install the package via composer:

```
composer require imnpc/filament-bandel
```

You can publish and run the migrations with:

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

ou can publish and run the translations with:

```
php artisan vendor:publish --tag="filament-bandel-translations"
```

You can publish the config file from cybercog/laravel-ban with:

```
php artisan vendor:publish --tag="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 Filament Resource

[](#register-ban-actions-in-filament-resource)

Register `BanAction` and `UnbanAction` actions inside your Model's Resource.

```
    public static function table(Table $table): Table
    {
        return $table
            ->actions([
//                ...rest,
                \Widiu7omo\FilamentBandel\Actions\BanAction::make(),
                \Widiu7omo\FilamentBandel\Actions\UnbanAction::make()
            ]);
    }
```

### Register Bulk Un/Ban Actions in Filament Resource

[](#register-bulk-unban-actions-in-filament-resource)

Register `BanBulkAction` and `UnbanBulkAction` actions inside your Model's Resource.

```
    public static function table(Table $table): Table
    {
        return $table
            ->prependBulkActions([
//            ...rest
                \Widiu7omo\FilamentBandel\Actions\BanBulkAction::make('banned_model'),
                \Widiu7omo\FilamentBandel\Actions\UnbanBulkAction::make('unbanned_model'),
            ]);
    }
```

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)

- [Danar Widi](https://github.com/widiu7omo)
- [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

41

—

FairBetter than 89% of packages

Maintenance89

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity48

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

Every ~74 days

Total

4

Last Release

54d ago

Major Versions

3.0.1 → 5.0.02026-01-21

5.0.0 → 6.0.02026-03-19

### Community

Maintainers

![](https://www.gravatar.com/avatar/4f149dfb0fcbc9e73b835450b3b2bd4e1b732e0d2113f519705b22f95913acae?d=identicon)[imnpc](/maintainers/imnpc)

---

Top Contributors

[![widiu7omo](https://avatars.githubusercontent.com/u/25941348?v=4)](https://github.com/widiu7omo "widiu7omo (13 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")[![imnpc](https://avatars.githubusercontent.com/u/5801647?v=4)](https://github.com/imnpc "imnpc (5 commits)")[![a21ns1g4ts](https://avatars.githubusercontent.com/u/11599205?v=4)](https://github.com/a21ns1g4ts "a21ns1g4ts (4 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (4 commits)")[![mohamedsabil83](https://avatars.githubusercontent.com/u/10126040?v=4)](https://github.com/mohamedsabil83 "mohamedsabil83 (3 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (2 commits)")

---

Tags

laravelwidiu7omofilament-bandel

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/imnpc-filament-bandel/health.svg)

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

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[guava/calendar

Adds support for vkurko/calendar to Filament PHP.

298241.0k3](/packages/guava-calendar)[guava/filament-knowledge-base

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

206120.5k1](/packages/guava-filament-knowledge-base)[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)[widiu7omo/filament-bandel

Banned Model with Filament Bandel

1457.9k](/packages/widiu7omo-filament-bandel)[bezhansalleh/filament-plugin-essentials

A collection of essential traits that streamline Filament plugin development by taking care of the boilerplate, so you can focus on shipping real features faster

27584.7k16](/packages/bezhansalleh-filament-plugin-essentials)

PHPackages © 2026

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