Skip to content

Commit

Permalink
Removing the need to add the HasRoles trait to the Users model as thi…
Browse files Browse the repository at this point in the history
…s now happens automagically
  • Loading branch information
jamesmills committed Jun 20, 2018
1 parent a0b2356 commit 968f0b7
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,6 @@ You will get a default user who has the role of admin. You will be able to log i
```
php artisan laravel-admin:install
```
3. Make sure your user model's has a ```HasRoles``` trait **app/User.php**.
```php
use JamesMills\LaravelAdmin\Models\Traits\HasRoles;

class User extends Authenticatable
{
use Notifiable, HasRoles;

...
```

## What this packages does

Expand All @@ -46,6 +36,7 @@ You will get a default user who has the role of admin. You will be able to log i
- A dedicated backend template `resources/views/templates/backend.blade.php`
- Replace the [AuthServiceProvider](https://github.com/jamesmills/laravel-admin/blob/master/publish/Providers/AuthServiceProvider.php) class with a new version
- Replace the web routes file with a [new version](https://github.com/jamesmills/laravel-admin/blob/master/publish/routes/web.php)
- Replaces the `User` model with a [new version](https://github.com/jamesmills/laravel-admin/blob/master/publish/Models/User.php) so that it has the `HasRoles` trail reference

## Roles & Permissions

Expand Down

0 comments on commit 968f0b7

Please sign in to comment.