Laravel permintaan semua hapus _token
$request->except('_token');
Shadow
$request->except('_token');
public function logout() {
Auth::user()->tokens->each(function($token, $key) {
$token->delete();
});
return response()->json('Successfully logged out');
}