app/Http/Controllers/AuthenticationController.php
// this method signs out users by removing tokens
this method signs out users by removing tokens
this method signs out users by removing tokens
public function signout()
    {
        auth()->user()->tokens()->delete();
        $success['status']  = 'signout' ;
        return $this->sendResponse($success, 'User signout successfully.');
    }
public function signout ( ) { auth ( ) -> user ( ) -> tokens ( ) -> delete ( ) ; $ success [ 'status' ] = 'signout' ; return $ this -> sendResponse ( $ success , 'User signout successfully.' ) ; }
this method signs out users by removing tokens
this method signs out users by removing tokens