fix login no locations loading
This commit is contained in:
@@ -33,7 +33,7 @@ class AuthController extends Controller
|
||||
|
||||
return response([
|
||||
'auth' => 'user',
|
||||
'user' => new AuthUserResource($user),
|
||||
'user' => new AuthUserResource($user->load('locations')),
|
||||
])->cookie('jwt', $token, 3 * 60 * 24);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user