{"repo":"cybercog/laravel-ban","free":true,"listed":false,"github":"https://github.com/cybercog/laravel-ban","clone":"git clone https://github.com/cybercog/laravel-ban.git","description":"Laravel Ban simplify blocking and banning Eloquent models.","language":"PHP","stars":1127,"topics":["laravel","eloquent","cog","trait","ban","jail","block","access","security","package"],"license":"MIT","category":"security-tools","readme_excerpt":"Laravel Ban Introduction Laravel Ban simplify management of Eloquent model's ban. Make any model bannable in a minutes! Use case is not limited to User model, any Eloquent model could be banned: Organizations, Teams, Groups and others. Contents - Features - Installation - Usage - Prepare bannable model - Prepare bannable model database table - Available methods - Scopes - Events - Middleware - Scheduling - Integrations - Changelog - Upgrading - Contributing - Testing - Security - Contributors - Alternatives - License - About CyberCog Features - Model can have many bans. - Removed bans kept in history as soft deleted records. - Most parts of the logic is handled by the BanService . - Has middleware to prevent banned user route access. - Use case is not limited to User model, any Eloquent model could be banned. - Events firing on models ban and unban . - Designed to work with Laravel Eloquent models. - Has Laravel Nova support. - Using contracts to keep high customization capabilities. - Using traits to get functionality out of the box. - Following PHP Standard Recommendations: - PSR-1 (Basic Coding Standard). - PSR-2 (Coding Style Guide). - PSR-4 (Autoloading Standard). - Covered with unit tests. Installation First, pull in the package through Composer: Registering package The package will automatically register itself. This step required for Laravel 5.4 or earlier releases only. Include the service provider within app/config/app.php : Apply database migrations At last, you ne","default_branch":null,"files":null,"tree":[],"storefront":"/r/cybercog","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cybercog/laravel-ban/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}