app/Http/Controllers/Api/AuthController.php
/**
     * Log the user out (Invalidate the token).
     *
     * @return \Illuminate\Http\JsonResponse
     */
Log the user out (Invalidate the token).
Log the user out ( Invalidate the token ) .
public function logout()
    {
        auth('api')->logout();
        return response([
            'message' => 'Deslogado com sucesso!',
        ]);
    }
public function logout ( ) { auth ( 'api' ) -> logout ( ) ; return response ( [ 'message' => 'Deslogado com sucesso!' , ] ) ; }
Log the user out (Invalidate the token).
Log the user out ( Invalidate the token ) .