Answers for "token delete laravel"

PHP
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

Browse Popular Code Answers by Language