We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8eb6434 commit 42e8e96Copy full SHA for 42e8e96
php-templates/auth.php
@@ -9,7 +9,7 @@
9
\Illuminate\Foundation\Auth\User::class,
10
]))
11
->flatMap(fn($class) => [
12
- $class => Gate::getPolicyFor($class),
+ $class => \Illuminate\Support\Facades\Gate::getPolicyFor($class),
13
])
14
->filter(fn($policy) => $policy !== null);
15
src/templates/auth.ts
@@ -9,7 +9,7 @@ $modelPolicies = collect(get_declared_classes())
\\Illuminate\\Foundation\\Auth\\User::class,
+ $class => \\Illuminate\\Support\\Facades\\Gate::getPolicyFor($class),
0 commit comments