Dingo\Api\Console\Command\Routes::filterRoute PHP Method

filterRoute() protected method

Filter the route by URI, Version, Scopes and / or name.
protected filterRoute ( array $route ) : array | null
$route array
return array | null
    protected function filterRoute(array $route)
    {
        $filters = ['name', 'path', 'protected', 'unprotected', 'versions', 'scopes'];
        foreach ($filters as $filter) {
            if ($this->option($filter) && !$this->{'filterBy' . ucfirst($filter)}($route)) {
                return;
            }
        }
        return $route;
    }