Skip to content

Commit f84b739

Browse files
committed
Merge branch 'master' of github.com:Codulab/laravel-restricted
2 parents d96edd7 + 2cdfc53 commit f84b739

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Commands/CrawlRoutes.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function crawl()
8484
foreach ($routeCollection as $route) {
8585

8686
$limit = config('restricted.index_level') ?: 1;
87-
$paths = explode('/', $route->getPath());
87+
$paths = explode('/', $route->uri());
8888

8989
foreach ($paths as $i => $path) {
9090
if($i >= $limit)
@@ -118,4 +118,4 @@ function store($routes){
118118
fwrite($file, $input);
119119
fclose($file);
120120
}
121-
}
121+
}

0 commit comments

Comments
 (0)