File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public function user($guard = null)
33
33
*
34
34
* @param string $userId
35
35
* @param string|null $guard
36
- * @return void
36
+ * @return \Illuminate\Http\Response
37
37
*/
38
38
public function login ($ userId , $ guard = null )
39
39
{
@@ -46,13 +46,15 @@ public function login($userId, $guard = null)
46
46
: $ provider ->retrieveById ($ userId );
47
47
48
48
Auth::guard ($ guard )->login ($ user );
49
+
50
+ return response (status: 204 );
49
51
}
50
52
51
53
/**
52
54
* Log the user out of the application.
53
55
*
54
56
* @param string|null $guard
55
- * @return void
57
+ * @return \Illuminate\Http\Response
56
58
*/
57
59
public function logout ($ guard = null )
58
60
{
@@ -61,6 +63,8 @@ public function logout($guard = null)
61
63
Auth::guard ($ guard )->logout ();
62
64
63
65
Session::forget ('password_hash_ ' .$ guard );
66
+
67
+ return response (status: 204 );
64
68
}
65
69
66
70
/**
You can’t perform that action at this time.
0 commit comments