Skip to content

Commit

Permalink
Update extending.md
Browse files Browse the repository at this point in the history
  • Loading branch information
drbyte authored Nov 5, 2020
1 parent 22c35f6 commit e61ba29
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/advanced-usage/extending.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@ If you need to EXTEND the existing `Role` or `Permission` models note that:

- Your `Role` model needs to extend the `Spatie\Permission\Models\Role` model
- Your `Permission` model needs to extend the `Spatie\Permission\Models\Permission` model
- You need to update `config/permisison.php` to specify your namespaced model

### Replacing
If you need to REPLACE the existing `Role` or `Permission` models you need to keep the following things in mind:

- Your `Role` model needs to implement the `Spatie\Permission\Contracts\Role` contract
- Your `Permission` model needs to implement the `Spatie\Permission\Contracts\Permission` contract
- You need to update `config/permisison.php` to specify your namespaced model


## Migrations - Adding fields to your models
Expand Down

0 comments on commit e61ba29

Please sign in to comment.