User allowed to banned and unbanned users.

0.5 2019-03-17 07:48 UTC


Basic Laravel Package that can banned your users

To download the package

  1. composer require morley/banned

To run Seeder

2. php artisan db:seed --class=morley\\banned\\Database\\Seeds\\UserSeeder

In 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'; }

Visit host/users or