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