@@ -579,12 +579,12 @@ |
||
| 579 | 579 | function get_routes($module = null): Collection |
| 580 | 580 | { |
| 581 | 581 | /** @var \Illuminate\Support\Collection $routes */ |
| 582 | - $routes = collect(Route::getRoutes()->getRoutesByName())->groupBy(function ($item, $key) { |
|
| 582 | + $routes = collect(Route::getRoutes()->getRoutesByName())->groupBy(function($item, $key) { |
|
| 583 | 583 | $keys = explode('.', $key); |
| 584 | 584 | |
| 585 | 585 | return $keys[0]; |
| 586 | - }, true)->map(function (Collection $item) { |
|
| 587 | - return $item->mapWithKeys(function ($item, $key) { |
|
| 586 | + }, true)->map(function(Collection $item) { |
|
| 587 | + return $item->mapWithKeys(function($item, $key) { |
|
| 588 | 588 | $keys = explode('.', $key); |
| 589 | 589 | $route = collect($item->action) |
| 590 | 590 | ->put('method', $item->methods[0]) |