PHPackages                             widiu7omo/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. [Admin Panels](/categories/admin)
4. /
5. widiu7omo/filament-bandel

ActiveLibrary[Admin Panels](/categories/admin)

widiu7omo/filament-bandel
=========================

Banned Model with Filament Bandel

v2.0.2(1y ago)1462.4k↓14.9%6[1 PRs](https://github.com/widiu7omo/filament-bandel/pulls)MITPHPPHP ^8.1CI failing

Since Apr 5Pushed 1y ago1 watchersCompare

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

READMEChangelog (5)Dependencies (7)Versions (6)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 widiu7omo/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

42

—

FairBetter than 88% of packages

Maintenance40

Moderate activity, may be stable

Popularity39

Limited adoption so far

Community16

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

Every ~171 days

Total

5

Last Release

500d ago

Major Versions

v1.0.2 → v2.0.02023-09-27

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/25941348?v=4)[Danar Widi](/maintainers/widiu7omo)[@widiu7omo](https://github.com/widiu7omo)

---

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)")[![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/widiu7omo-filament-bandel/health.svg)

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

###  Alternatives

[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[stephenjude/filament-jetstream

A Laravel starter kit built with Filament inspired by Jetstream.

17760.2k3](/packages/stephenjude-filament-jetstream)[stephenjude/filament-debugger

About

104162.2k2](/packages/stephenjude-filament-debugger)[croustibat/filament-jobs-monitor

Background Jobs monitoring like Horizon for all drivers for FilamentPHP

274327.2k9](/packages/croustibat-filament-jobs-monitor)[guava/filament-knowledge-base

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

209151.3k2](/packages/guava-filament-knowledge-base)[mradder/filament-logger

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

2317.4k](/packages/mradder-filament-logger)

PHPackages © 2026

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