laravel passport delete access token code example
Example 1: laravel passport
php artisan passport:install
Example 2: token delete laravel
public function logout() {
Auth::user()->tokens->each(function($token, $key) {
$token->delete();
});
return response()->json('Successfully logged out');
}