Adamgoose\Routing\Annotations\ResourceEndpoint::getMiddleware PHP Method

getMiddleware() protected method

This will also merge in any of the middleware applied at the route level.
protected getMiddleware ( ResourcePath $path ) : array
$path ResourcePath
return array
    protected function getMiddleware(ResourcePath $path)
    {
        $classMiddleware = $this->getClassMiddlewareForPath($path)->all();
        return array_merge($classMiddleware, array_get($this->middleware, $path->method, []));
    }