Download the PHP package ttungbmt/filament-ban without Composer
On this page you can find all versions of the php package ttungbmt/filament-ban. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ttungbmt/filament-ban
More information about ttungbmt/filament-ban
Files in ttungbmt/filament-ban
Package filament-ban
Short Description This is my package filament-ban
License MIT
Homepage https://github.com/ttungbmt/filament-ban
Informations about the package filament-ban
Laravel Filament Ban
Introduction
Behind the scenes cybercog/laravel-ban is used.
Installation
You can install the package via composer:
You can publish and run the migrations with:
You can publish the config file with:
Prepare bannable model
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
and Unban
actions inside your Model's Resource.
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
- Truong Thanh Tung
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-ban with dependencies
spatie/laravel-package-tools Version ^1.9.2
illuminate/contracts Version ^9.0
cybercog/laravel-ban Version ^4.7