Skip to content

Commit

Permalink
Completed v1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
eneakh committed Aug 23, 2023
1 parent c4f2c5a commit 722e255
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ $user->hasPermission(string $permission) : bool
Users can receive roles with permissions defined in `App\Providers\LadderServiceProvider` using `Ladder::role` method. This involves specifying a role's slug, name, permissions, and description. For instance, in a blog app, role definitions could be:
```php
Ladder::role('admin', 'Administrator', [
'create',
'read',
'update',
'delete',
'post:read',
'post:create',
'post:update',
'post:delete',
])->description('Administrator users can perform any action.');

Ladder::role('editor', 'Editor', [
Expand Down

0 comments on commit 722e255

Please sign in to comment.