1
0
mirror of https://github.com/robonen/education-project.git synced 2026-03-20 10:54:31 +00:00
This commit is contained in:
nikden13
2020-12-16 03:13:20 +07:00
parent c93ffe8b0f
commit 045a767774
22 changed files with 231 additions and 54 deletions

View File

@@ -9,8 +9,8 @@ class LogoutController extends Controller
{
public function __invoke(Request $request)
{
$request->user()->token()->revoke();
auth()->user()->token()->revoke();
return response()->json('ok', 200);
return response()->json(['message' => 'You are logged out'], 200);
}
}