|
@@ -151,7 +151,7 @@ class PermissionController extends AdminController
|
|
|
$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;
|
|
|
}
|
|
|
|