DEV Community

Discussion on: Build a JWT Authenticated API with Lumen(v5.8)

Collapse
 
be_anjos profile image
Brenddon Anjos

Hy bro, thanks for the tutorial. I want to know how I implements logout

Collapse
 
mamedioguilherme1 profile image
Guilherme Mamedio

public function logout () {
Auth::logout();
return response()->json(['message' => 'Successfully logged out']);
}