Skip to content

Commit

Permalink
Update ReadMe
Browse files Browse the repository at this point in the history
  • Loading branch information
mtvbrianking committed Sep 22, 2017
1 parent 2d71643 commit cc51e14
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion readme.md
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`

0 comments on commit cc51e14

Please sign in to comment.