Skip to content

dhsananias/multi-auth

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Multi-Authentication Package

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.

Installation

$ composer require bmatovu/multi-auth

Register Service Provider [config/app.php]

'providers' => array(
    // ...
   Bmatovu\MultiAuth\Providers\MultiAuthServiceProvider::class,
),

Register Alias [config/app.php]

'aliases' => [
    // ...
    'MultiAuth' => Bmatovu\MultiAuth\MultiAuth::class,    
],

Publish Configurations

$ php artisan vendor:publish \
    --provider="Bmatovu\MultiAuth\MultiAuthServiceProvider" \
    --tag=config

Run Database Migrations

$ php artisan migrate

Testing...

Unguarded: http://127.0.0.1:8000/admin Unguard: http://127.0.0.1:8000/admin/home

Extras:

Check Routes: php artisan route:list

About

Laravel Multi-Authentication Package

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 58.1%
  • PHP 41.9%