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 4170afa commit a093f92Copy full SHA for a093f92
src/Illuminate/Auth/AuthServiceProvider.php
@@ -57,9 +57,7 @@ protected function registerUserResolver()
57
protected function registerAccessGate()
58
{
59
$this->app->singleton(GateContract::class, function ($app) {
60
- return new Gate($app, function () use ($app) {
61
- return call_user_func($app['auth']->userResolver());
62
- });
+ return new Gate($app, fn () => call_user_func($app['auth']->userResolver()));
63
});
64
}
65
0 commit comments