fix login no locations loading

This commit is contained in:
Romulus21
2023-09-24 16:32:18 +02:00
parent 4c41de5dca
commit 32ddcc78ce

View File

@@ -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);
}