diff --git a/src/Http/Controllers/PermissionController.php b/src/Http/Controllers/PermissionController.php index 8f32f15ed..5a39bce3c 100644 --- a/src/Http/Controllers/PermissionController.php +++ b/src/Http/Controllers/PermissionController.php @@ -151,7 +151,7 @@ public function getRoutes() $container = collect(); $routes = collect(app('router')->getRoutes())->map(function ($route) use ($prefix, $container) { - if (! Str::startsWith($uri = $route->uri(), $prefix) && $prefix) { + if (! Str::startsWith($uri = $route->uri(), $prefix) && $prefix && $prefix !== '/') { return; }