This package will create a new athentication guard 'admin', as well as scaffold all of the routes and views you need for admin authentication. The package will install a layout view, registration and login views, as well as routes for all authentication end-points. A HomeController will also be generated to handle post-login requests to your application's dashboard.
$ composer require bmatovu/multi-auth
'providers' => array(
// ...
Bmatovu\MultiAuth\Providers\MultiAuthServiceProvider::class,
),
'aliases' => [
// ...
'MultiAuth' => Bmatovu\MultiAuth\MultiAuth::class,
],
$ php artisan vendor:publish \
--provider="Bmatovu\MultiAuth\MultiAuthServiceProvider" \
--tag=config
$ php artisan migrate
Unguarded: http://127.0.0.1:8000/admin
Unguard: http://127.0.0.1:8000/admin/home
Check Routes: php artisan route:list