Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Codulab/laravel-restricted
Browse files Browse the repository at this point in the history
  • Loading branch information
Godofbrowser committed Feb 11, 2018
2 parents d96edd7 + 2cdfc53 commit f84b739
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Commands/CrawlRoutes.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -118,4 +118,4 @@ function store($routes){
fwrite($file, $input);
fclose($file);
}
}
}

0 comments on commit f84b739

Please sign in to comment.