Comment supprimer le jeton pendant la déconnexion en utilisant Laravel 8
//put this code in controller
public function logout()
{
$user = Auth::user()->token();
$user->revoke();
return response()->json('Successfully logged out');
}
kinjal suryavanshi