Skip to content

Commit

Permalink
Update Doctumentation
Browse files Browse the repository at this point in the history
  • Loading branch information
MirHamit committed Aug 29, 2021
1 parent baf04a1 commit b7f4cbd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,16 @@ php artisan migrate

---
## Usage
Add HasPermission to your user model
```php
use MirHamit\ACL\HasPermissions;
class User extends Authenticatable
{
use HasApiTokens, HasFactory, Notifiable, HasPermissions;
...
}
```

You can add multiple roles in `roles` table and permissions in `permissions` table and bind permission to role in `permission_role` table

You can use middleware:
Expand Down

0 comments on commit b7f4cbd

Please sign in to comment.