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

filterByScopes() protected method

Filter the route by its scopes.
protected filterByScopes ( array $route ) : boolean
$route array
return boolean
    protected function filterByScopes(array $route)
    {
        foreach ($this->option('scopes') as $scope) {
            if (Str::contains($route['scopes'], $scope)) {
                return true;
            }
        }
        return false;
    }