Skip to content

Commit

Permalink
Add haspermission traits in user model
Browse files Browse the repository at this point in the history
  • Loading branch information
agoussec committed Feb 3, 2022
1 parent cee2233 commit 78c1cd8
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,23 @@ composer require agoussec/urp
```


Add HasPermission trait in User Model.

```sh
<?php
namespace App\Models;
...
...
use Agoussec\URP\Traits\HasPermissions;

class User extends Authenticatable
{
use HasPermissions;
...
...
}
```

## Usage
##### Console commands -

Expand Down

0 comments on commit 78c1cd8

Please sign in to comment.