-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2d71643
commit cc51e14
Showing
1 changed file
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,39 @@ | ||
# Laravel Multi-Authentication Package # | ||
## 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` |