src/Concerns/HasMiddleware.php
protected function isMiddlewareDisabled(string $key = '', string $group = null): bool
    {
        $middleware = $this->getMiddleware($key, $group);
        return $middleware instanceof Disableable ? $middleware->isDisabled() : false;
    }
protected function isMiddlewareDisabled(string $key = '', string $group = null): bool
    {
        $middleware = $this->getMiddleware($key, $group);
        return $middleware instanceof Disableable ? $middleware->isDisabled() : false;
    }
Checks the disabled status of the given middleware.

@param string $key
@param string|null $group
@return bool