Answers for "laravel passport delete access token"

PHP
7

laravel passport

php artisan passport:install
Posted by: Guest on June-06-2020
0

token delete laravel

public function logout() {
    Auth::user()->tokens->each(function($token, $key) {
        $token->delete();
    });

    return response()->json('Successfully logged out');
}
Posted by: Guest on August-14-2020

Code answers related to "laravel passport delete access token"

Browse Popular Code Answers by Language