protected function findMiddleware($action)
    {
        if (is_array($action) && isset($action['_middleware'])) {
            return $action['_middleware'];
        } elseif (isset($this->group['_middleware'])) {
            return $this->group['_middleware'];
        }

        return false;
    }
protected function findMiddleware($action)
    {
        if (is_array($action) && isset($action['_middleware'])) {
            return $action['_middleware'];
        } elseif (isset($this->group['_middleware'])) {
            return $this->group['_middleware'];
        }

        return false;
    }
protected function findMiddleware ( $ action ) { if ( is_array ( $ action ) && isset ( $ action [ '_middleware' ] ) ) { return $ action [ '_middleware' ] ; } elseif ( isset ( $ this -> group [ '_middleware' ] ) ) { return $ this -> group [ '_middleware' ] ; } return false ; }
find and return middleware

@param array $action
@return mixed
find and return middleware