From d97529b30b1530dd7cd1ca2d5aecec46ad0cc378 Mon Sep 17 00:00:00 2001 From: Marc Leonhard Date: Tue, 22 Oct 2024 08:47:38 +0200 Subject: [PATCH] Update using-policies.md Remove not needed brackets in return statement --- docs/best-practices/using-policies.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/best-practices/using-policies.md b/docs/best-practices/using-policies.md index c967ca9d..648ad197 100644 --- a/docs/best-practices/using-policies.md +++ b/docs/best-practices/using-policies.md @@ -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