src/Http/Controllers/AuthorizedAccessTokenController.php
public function destroy(Request $request, $tokenId)
    {
        $token = $this->tokenRepository->findForUser(
            $tokenId, $request->user()->getKey()
        );

        if (is_null($token)) {
            return new Response('', 404);
        }

        $token->revoke();

        return new Response('', Response::HTTP_NO_CONTENT);
    }
public function destroy(Request $request, $tokenId)
    {
        $token = $this->tokenRepository->findForUser(
            $tokenId, $request->user()->getKey()
        );

        if (is_null($token)) {
            return new Response('', 404);
        }

        $token->revoke();

        return new Response('', Response::HTTP_NO_CONTENT);
    }
public function destroy ( Request $ request , $ tokenId ) { $ token = $ this -> tokenRepository -> findForUser ( $ tokenId , $ request -> user ( ) -> getKey ( ) ) ; if ( is_null ( $ token ) ) { return new Response ( '' , 404 ) ; } $ token -> revoke ( ) ; return new Response ( '' , Response :: HTTP_NO_CONTENT ) ; }
Delete the given token.

@param  \Illuminate\Http\Request  $request
@param  string  $tokenId
@return \Illuminate\Http\Response
Delete the given token .