| @@ 7-44 (lines=38) @@ | ||
| 4 | use Caffeinated\Modules\Providers\RouteServiceProvider as ServiceProvider; |
|
| 5 | use Illuminate\Routing\Router; |
|
| 6 | ||
| 7 | class RouteServiceProvider extends ServiceProvider |
|
| 8 | { |
|
| 9 | /** |
|
| 10 | * This namespace is applied to the controller routes in your module's routes file. |
|
| 11 | * |
|
| 12 | * In addition, it is set as the URL generator's root namespace. |
|
| 13 | * |
|
| 14 | * @var string |
|
| 15 | */ |
|
| 16 | protected $namespace = 'App\Modules\Acl\Http\Controllers'; |
|
| 17 | ||
| 18 | /** |
|
| 19 | * Define your module's route model bindings, pattern filters, etc. |
|
| 20 | * |
|
| 21 | * @param \Illuminate\Routing\Router $router |
|
| 22 | * @return void |
|
| 23 | */ |
|
| 24 | public function boot(Router $router) |
|
| 25 | { |
|
| 26 | parent::boot($router); |
|
| 27 | ||
| 28 | // |
|
| 29 | } |
|
| 30 | ||
| 31 | /** |
|
| 32 | * Define the routes for the module. |
|
| 33 | * |
|
| 34 | * @param \Illuminate\Routing\Router $router |
|
| 35 | * @return void |
|
| 36 | */ |
|
| 37 | public function map(Router $router) |
|
| 38 | { |
|
| 39 | $router->group(['namespace' => $this->namespace], function($router) |
|
| 40 | { |
|
| 41 | require (config('modules.path').'/Acl/Http/routes.php'); |
|
| 42 | }); |
|
| 43 | } |
|
| 44 | } |
|
| 45 | ||
| @@ 7-44 (lines=38) @@ | ||
| 4 | use Caffeinated\Modules\Providers\RouteServiceProvider as ServiceProvider; |
|
| 5 | use Illuminate\Routing\Router; |
|
| 6 | ||
| 7 | class RouteServiceProvider extends ServiceProvider |
|
| 8 | { |
|
| 9 | /** |
|
| 10 | * This namespace is applied to the controller routes in your module's routes file. |
|
| 11 | * |
|
| 12 | * In addition, it is set as the URL generator's root namespace. |
|
| 13 | * |
|
| 14 | * @var string |
|
| 15 | */ |
|
| 16 | protected $namespace = 'App\Modules\Core\Http\Controllers'; |
|
| 17 | ||
| 18 | /** |
|
| 19 | * Define your module's route model bindings, pattern filters, etc. |
|
| 20 | * |
|
| 21 | * @param \Illuminate\Routing\Router $router |
|
| 22 | * @return void |
|
| 23 | */ |
|
| 24 | public function boot(Router $router) |
|
| 25 | { |
|
| 26 | parent::boot($router); |
|
| 27 | ||
| 28 | // |
|
| 29 | } |
|
| 30 | ||
| 31 | /** |
|
| 32 | * Define the routes for the module. |
|
| 33 | * |
|
| 34 | * @param \Illuminate\Routing\Router $router |
|
| 35 | * @return void |
|
| 36 | */ |
|
| 37 | public function map(Router $router) |
|
| 38 | { |
|
| 39 | $router->group(['namespace' => $this->namespace], function($router) |
|
| 40 | { |
|
| 41 | require (config('modules.path').'/Core/Http/routes.php'); |
|
| 42 | }); |
|
| 43 | } |
|
| 44 | } |
|
| 45 | ||
| @@ 7-44 (lines=38) @@ | ||
| 4 | use Caffeinated\Modules\Providers\RouteServiceProvider as ServiceProvider; |
|
| 5 | use Illuminate\Routing\Router; |
|
| 6 | ||
| 7 | class RouteServiceProvider extends ServiceProvider |
|
| 8 | { |
|
| 9 | /** |
|
| 10 | * This namespace is applied to the controller routes in your module's routes file. |
|
| 11 | * |
|
| 12 | * In addition, it is set as the URL generator's root namespace. |
|
| 13 | * |
|
| 14 | * @var string |
|
| 15 | */ |
|
| 16 | protected $namespace = 'App\Modules\Logging\Http\Controllers'; |
|
| 17 | ||
| 18 | /** |
|
| 19 | * Define your module's route model bindings, pattern filters, etc. |
|
| 20 | * |
|
| 21 | * @param \Illuminate\Routing\Router $router |
|
| 22 | * @return void |
|
| 23 | */ |
|
| 24 | public function boot(Router $router) |
|
| 25 | { |
|
| 26 | parent::boot($router); |
|
| 27 | ||
| 28 | // |
|
| 29 | } |
|
| 30 | ||
| 31 | /** |
|
| 32 | * Define the routes for the module. |
|
| 33 | * |
|
| 34 | * @param \Illuminate\Routing\Router $router |
|
| 35 | * @return void |
|
| 36 | */ |
|
| 37 | public function map(Router $router) |
|
| 38 | { |
|
| 39 | $router->group(['namespace' => $this->namespace], function($router) |
|
| 40 | { |
|
| 41 | require (config('modules.path').'/Logging/Http/routes.php'); |
|
| 42 | }); |
|
| 43 | } |
|
| 44 | } |
|
| 45 | ||
| @@ 7-44 (lines=38) @@ | ||
| 4 | use Caffeinated\Modules\Providers\RouteServiceProvider as ServiceProvider; |
|
| 5 | use Illuminate\Routing\Router; |
|
| 6 | ||
| 7 | class RouteServiceProvider extends ServiceProvider |
|
| 8 | { |
|
| 9 | /** |
|
| 10 | * This namespace is applied to the controller routes in your module's routes file. |
|
| 11 | * |
|
| 12 | * In addition, it is set as the URL generator's root namespace. |
|
| 13 | * |
|
| 14 | * @var string |
|
| 15 | */ |
|
| 16 | protected $namespace = 'App\Modules\Notifications\Http\Controllers'; |
|
| 17 | ||
| 18 | /** |
|
| 19 | * Define your module's route model bindings, pattern filters, etc. |
|
| 20 | * |
|
| 21 | * @param \Illuminate\Routing\Router $router |
|
| 22 | * @return void |
|
| 23 | */ |
|
| 24 | public function boot(Router $router) |
|
| 25 | { |
|
| 26 | parent::boot($router); |
|
| 27 | ||
| 28 | // |
|
| 29 | } |
|
| 30 | ||
| 31 | /** |
|
| 32 | * Define the routes for the module. |
|
| 33 | * |
|
| 34 | * @param \Illuminate\Routing\Router $router |
|
| 35 | * @return void |
|
| 36 | */ |
|
| 37 | public function map(Router $router) |
|
| 38 | { |
|
| 39 | $router->group(['namespace' => $this->namespace], function($router) |
|
| 40 | { |
|
| 41 | require (config('modules.path').'/Notifications/Http/routes.php'); |
|
| 42 | }); |
|
| 43 | } |
|
| 44 | } |
|
| 45 | ||
| @@ 7-44 (lines=38) @@ | ||
| 4 | use Caffeinated\Modules\Providers\RouteServiceProvider as ServiceProvider; |
|
| 5 | use Illuminate\Routing\Router; |
|
| 6 | ||
| 7 | class RouteServiceProvider extends ServiceProvider |
|
| 8 | { |
|
| 9 | /** |
|
| 10 | * This namespace is applied to the controller routes in your module's routes file. |
|
| 11 | * |
|
| 12 | * In addition, it is set as the URL generator's root namespace. |
|
| 13 | * |
|
| 14 | * @var string |
|
| 15 | */ |
|
| 16 | protected $namespace = 'App\Modules\Reporting\Http\Controllers'; |
|
| 17 | ||
| 18 | /** |
|
| 19 | * Define your module's route model bindings, pattern filters, etc. |
|
| 20 | * |
|
| 21 | * @param \Illuminate\Routing\Router $router |
|
| 22 | * @return void |
|
| 23 | */ |
|
| 24 | public function boot(Router $router) |
|
| 25 | { |
|
| 26 | parent::boot($router); |
|
| 27 | ||
| 28 | // |
|
| 29 | } |
|
| 30 | ||
| 31 | /** |
|
| 32 | * Define the routes for the module. |
|
| 33 | * |
|
| 34 | * @param \Illuminate\Routing\Router $router |
|
| 35 | * @return void |
|
| 36 | */ |
|
| 37 | public function map(Router $router) |
|
| 38 | { |
|
| 39 | $router->group(['namespace' => $this->namespace], function($router) |
|
| 40 | { |
|
| 41 | require (config('modules.path').'/Reporting/Http/routes.php'); |
|
| 42 | }); |
|
| 43 | } |
|
| 44 | } |
|
| 45 | ||