diff --git a/src/Commands/CrawlRoutes.php b/src/Commands/CrawlRoutes.php index b4459fa..92ae07b 100644 --- a/src/Commands/CrawlRoutes.php +++ b/src/Commands/CrawlRoutes.php @@ -84,7 +84,7 @@ public function crawl() foreach ($routeCollection as $route) { $limit = config('restricted.index_level') ?: 1; - $paths = explode('/', $route->getPath()); + $paths = explode('/', $route->uri()); foreach ($paths as $i => $path) { if($i >= $limit) @@ -117,4 +117,4 @@ function store($routes){ fwrite($file, $input); fclose($file); } -} \ No newline at end of file +}