morley / banned
User allowed to banned and unbanned users.
0.5
2019-03-17 07:48 UTC
This package is auto-updated.
Last update: 2024-04-18 02:40:07 UTC
README
Basic Laravel Package that can banned your users
To download the package
- composer require morley/banned
To run Seeder
2. php artisan db:seed --class=morley\\banned\\Database\\Seeds\\UserSeederIn your LoginController you can check the status_id
1 = active
0 - inactive/banned
And add this code below after login is success
if(\Auth::user()->status_id == 0){
return 'User is banned';
}