protected function disableMiddleware(string $key = '', string $group = null)
    {
        $middleware = $this->getMiddleware($key, $group);
        if ($middleware instanceof Disableable) {
            $middleware->disable();
        }
        return $this;
    }
protected function disableMiddleware(string $key = '', string $group = null)
    {
        $middleware = $this->getMiddleware($key, $group);
        if ($middleware instanceof Disableable) {
            $middleware->disable();
        }
        return $this;
    }
protected function disableMiddleware ( string $ key = '' , string $ group = null ) { $ middleware = $ this -> getMiddleware ( $ key , $ group ) ; if ( $ middleware instanceof Disableable ) { $ middleware -> disable ( ) ; } return $ this ; }
Disable the given middleware.

@param string $key
@param string|null $group
@return $this
Disable the given middleware .