We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5684e98 commit 904d434Copy full SHA for 904d434
src/Http/Controllers/PermissionController.php
@@ -151,7 +151,7 @@ public function getRoutes()
151
$container = collect();
152
153
$routes = collect(app('router')->getRoutes())->map(function ($route) use ($prefix, $container) {
154
- if (! Str::startsWith($uri = $route->uri(), $prefix) && $prefix) {
+ if (! Str::startsWith($uri = $route->uri(), $prefix) && $prefix && $prefix !== '/') {
155
return;
156
}
157
0 commit comments