@@ -28,13 +28,13 @@ discard block |
||
28 | 28 | { |
29 | 29 | $managedRoutes = $this->expandWithAssistantRoutes($managerClass, $managedRoutes); |
30 | 30 | |
31 | - $this->router->group(['prefix' => $this->routePrefix, 'middleware' => $this->routeMiddleware], function () use($managedRoutes) { |
|
32 | - foreach($managedRoutes as $route) { |
|
31 | + $this->router->group(['prefix' => $this->routePrefix, 'middleware' => $this->routeMiddleware], function() use($managedRoutes) { |
|
32 | + foreach ($managedRoutes as $route) { |
|
33 | 33 | $this->router->addRoute( |
34 | 34 | $route->method, |
35 | - $managedRoutes->getName() .'/'. $route->uri, |
|
35 | + $managedRoutes->getName().'/'.$route->uri, |
|
36 | 36 | [$managedRoutes->getManagerClass(), Str::camel($route->action)] |
37 | - )->name('chief.' . $managedRoutes->getName() . '.' . $route->action); |
|
37 | + )->name('chief.'.$managedRoutes->getName().'.'.$route->action); |
|
38 | 38 | } |
39 | 39 | }); |
40 | 40 | } |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | } |
49 | 49 | } |
50 | 50 | |
51 | - if(public_method_exists($managerClass, 'routes')) { |
|
51 | + if (public_method_exists($managerClass, 'routes')) { |
|
52 | 52 | $managedRoutes = $managedRoutes->push($managerClass::routes()); |
53 | 53 | } |
54 | 54 |
@@ -34,9 +34,9 @@ |
||
34 | 34 | $modules = $parent->children(); |
35 | 35 | |
36 | 36 | // Add their respective manager per class |
37 | - $moduleManagers = $modules->groupBy(function ($child) { |
|
37 | + $moduleManagers = $modules->groupBy(function($child) { |
|
38 | 38 | return get_class($child); |
39 | - })->map(function ($child, $class) { |
|
39 | + })->map(function($child, $class) { |
|
40 | 40 | return app(ModelToManagerMap::class)->find($class); |
41 | 41 | }); |
42 | 42 |