File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -50,9 +50,7 @@ public function __construct($app)
50
50
{
51
51
$ this ->app = $ app ;
52
52
53
- $ this ->userResolver = function ($ guard = null ) {
54
- return $ this ->guard ($ guard )->user ();
55
- };
53
+ $ this ->userResolver = fn ($ guard = null ) => $ this ->guard ($ guard )->user ();
56
54
}
57
55
58
56
/**
@@ -204,9 +202,7 @@ public function shouldUse($name)
204
202
205
203
$ this ->setDefaultDriver ($ name );
206
204
207
- $ this ->userResolver = function ($ name = null ) {
208
- return $ this ->guard ($ name )->user ();
209
- };
205
+ $ this ->userResolver = fn ($ name = null ) => $ this ->guard ($ name )->user ();
210
206
}
211
207
212
208
/**
Original file line number Diff line number Diff line change @@ -46,9 +46,7 @@ protected function registerAuthenticator()
46
46
*/
47
47
protected function registerUserResolver ()
48
48
{
49
- $ this ->app ->bind (AuthenticatableContract::class, function ($ app ) {
50
- return call_user_func ($ app ['auth ' ]->userResolver ());
51
- });
49
+ $ this ->app ->bind (AuthenticatableContract::class, fn ($ app ) => call_user_func ($ app ['auth ' ]->userResolver ()));
52
50
}
53
51
54
52
/**
You can’t perform that action at this time.
0 commit comments