app/Http/Controllers/APIAuthController.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($plataforma)
    {
        auth('api')->logout();
        return response()->json(['message' => 'Successfully logged out','logout'=>true]);
    }
public function logout ( $ plataforma ) { auth ( 'api' ) -> logout ( ) ; return response ( ) -> json ( [ 'message' => 'Successfully logged out' , 'logout' => true ] ) ; }
Log the user out (Invalidate the token).
Log the user out ( Invalidate the token ) .