From c5df062b1cd15303db0e800e8cf15b59999d8f6c Mon Sep 17 00:00:00 2001 From: Warrick Date: Wed, 1 Sep 2021 10:04:04 +0200 Subject: [PATCH] README cleanup --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index dea89d1..b7bdbc5 100644 --- a/README.md +++ b/README.md @@ -267,7 +267,7 @@ class User extends Authenticatable { use HasPermissions; - //... + //... } ``` @@ -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'); } } ``` @@ -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'); } ```