protected function getControllerMiddleware(): array
    {
        if (! $this->isControllerAction()) {
            return [];
        }

        $controller = $this->getController();

        if (\method_exists($controller, 'gatherMiddleware')) {
            return $controller->gatherMiddleware();
        }

        return [];
    }
protected function getControllerMiddleware(): array
    {
        if (! $this->isControllerAction()) {
            return [];
        }

        $controller = $this->getController();

        if (\method_exists($controller, 'gatherMiddleware')) {
            return $controller->gatherMiddleware();
        }

        return [];
    }
protected function getControllerMiddleware ( ) : array { if ( ! $ this -> isControllerAction ( ) ) { return [ ] ; } $ controller = $ this -> getController ( ) ; if ( \ method_exists ( $ controller , 'gatherMiddleware' ) ) { return $ controller -> gatherMiddleware ( ) ; } return [ ] ; }
Get the bound route controller middleware.

@return array
Get the bound route controller middleware .