Download the PHP package cybercog/laravel-nova-ban without Composer
On this page you can find all versions of the php package cybercog/laravel-nova-ban. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-nova-ban
Laravel Nova Ban
Introduction
Behind the scenes cybercog/laravel-ban is used.
Contents
- Installation
- Usage
- Prepare bannable model
- Prepare bannable model database table
- Register Ban Actions in Nova Resource
- Contributing
- Testing
- Security
- Contributors
- Alternatives
- License
- About CyberCog
Installation
Pull in the package through Composer.
Usage
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.
Create a new migration file
Then insert the following code into migration file:
Apply new migration.
Register Ban Actions in Nova Resource
Register Ban
and Unban
actions inside your Bannable
Model's Resource.
Contributing
Please see CONTRIBUTING for details.
Testing
Run the tests with:
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Contributors
Anton Komarev |
Sergiy Petrov |
Mark van den Broek |
Roy Shay |
---|
Laravel Nova Ban contributors list
Alternatives
Feel free to add more alternatives as Pull Request.
License
Laravel Nova Ban
package is open-sourced software licensed under the Anton Komarev.Fat Boss In Jail
image licensed under Creative Commons 3.0 by Gan Khoon Lay.
About CyberCog
CyberCog is a Social Unity of enthusiasts. Research best solutions in product & software development is our passion.