Skip to content

Commit

Permalink
README cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
warrickbayman committed Sep 1, 2021
1 parent 4398927 commit c5df062
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ class User extends Authenticatable
{
use HasPermissions;

//...
//...
}
```

Expand Down Expand Up @@ -310,8 +310,8 @@ class ArticlePolicy
{
return Deadbolt::user($user)->has('articles.create');

// Or if you're using the HasPermissions trait:
return $user->permissions()->has('articles.create');
// Or if you're using the HasPermissions trait:
return $user->permissions()->has('articles.create');
}
}
```
Expand All @@ -329,8 +329,8 @@ public function update(User $user, Article $article)
{
return Deadbolt::user($user)->hasAll('articles.create', 'articles.edit');

// Or if you're using the HasPermissions trait:
return $user->hasAll('articles.create', 'articles.edit');
// Or if you're using the HasPermissions trait:
return $user->hasAll('articles.create', 'articles.edit');
}
```

Expand Down

0 comments on commit c5df062

Please sign in to comment.