Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

token delete laravel

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

    return response()->json('Successfully logged out');
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #token #delete #laravel
ADD COMMENT
Topic
Name
3+8 =