Download the PHP package jeffersongoncalves/filament-ban without Composer
On this page you can find all versions of the php package jeffersongoncalves/filament-ban. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jeffersongoncalves/filament-ban
More information about jeffersongoncalves/filament-ban
Files in jeffersongoncalves/filament-ban
Package filament-ban
Short Description Ban and unban any Eloquent model directly from Filament tables with ready-to-use actions, bulk actions, an icon column and a status filter, powered by cybercog/laravel-ban.
License MIT
Homepage https://github.com/jeffersongoncalves/filament-ban
Informations about the package filament-ban
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:
Publish and run the cybercog/laravel-ban migration (creates the bans table):
Then add a nullable banned_at timestamp column to each bannable model's table:
Preparing your model
Make any Eloquent model bannable by implementing the contract and using the trait:
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.
Bulk actions
Column
Display the current ban status as a boolean icon:
Filter
Filter records by ban status (uses the onlyBanned / withoutBanned scopes):
Development
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
- Jèfferson Gonçalves
- Anton Komarev — author of cybercog/laravel-ban
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-ban with dependencies
cybercog/laravel-ban Version ^4.10
filament/filament Version ^5.3
spatie/laravel-package-tools Version ^1.14.0