Skip to content

Commit 2cdfc53

Browse files
authored
Merge pull request #3 from Codulab/dev
Replace removed method in laravel 5.4 Illuminate\Routing\Route::getPath()
2 parents a81aa19 + ae59a4c commit 2cdfc53

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)
@@ -117,4 +117,4 @@ function store($routes){
117117
fwrite($file, $input);
118118
fclose($file);
119119
}
120-
}
120+
}

0 commit comments

Comments
 (0)