Skip to content

Commit

Permalink
Update using-policies.md
Browse files Browse the repository at this point in the history
Remove not needed brackets in return statement
  • Loading branch information
marcleonhard authored Oct 22, 2024
1 parent 43bc084 commit d97529b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/best-practices/using-policies.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class PostPolicy

public function create(User $user): bool
{
return ($user->can('create posts'));
return $user->can('create posts');
}

public function update(User $user, Post $post): bool
Expand Down

0 comments on commit d97529b

Please sign in to comment.