We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 514cb7e commit 28577dcCopy full SHA for 28577dc
docs/basic-usage/super-admin.md
@@ -51,7 +51,7 @@ use App\Models\User; // could be any Authorizable model
51
/**
52
* Perform pre-authorization checks on the model.
53
*/
54
-public function before(User $user, string $ability): bool|null
+public function before(User $user, string $ability): ?bool
55
{
56
if ($user->hasRole('Super Admin')) {
57
return true;
0 commit comments