2020-10-21 15:26:21 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
|
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
|
|
|
|
|
|
class RouteServiceProvider extends ServiceProvider
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* This namespace is applied to your controller routes.
|
|
|
|
|
*
|
|
|
|
|
* In addition, it is set as the URL generator's root namespace.
|
|
|
|
|
*
|
|
|
|
|
* @var string
|
|
|
|
|
*/
|
2022-01-10 16:29:33 +01:00
|
|
|
protected $namespace = null;
|
2020-10-21 15:26:21 +02:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The path to the "home" route for your application.
|
|
|
|
|
*
|
|
|
|
|
* @var string
|
|
|
|
|
*/
|
2020-10-29 15:40:23 +01:00
|
|
|
public const HOME = '/';
|
2020-10-21 15:26:21 +02:00
|
|
|
|
|
|
|
|
/**
|
2022-01-10 16:29:33 +01:00
|
|
|
* Define your route model bindings, pattern filters, etc.
|
2020-10-21 15:26:21 +02:00
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
2022-01-10 16:29:33 +01:00
|
|
|
public function boot()
|
2020-10-21 15:26:21 +02:00
|
|
|
{
|
2022-01-10 16:29:33 +01:00
|
|
|
$this->routes(function () {
|
|
|
|
|
|
|
|
|
|
Route::middleware('web')
|
2020-10-21 15:26:21 +02:00
|
|
|
->namespace($this->namespace)
|
|
|
|
|
->group(base_path('routes/web.php'));
|
2022-01-10 16:29:33 +01:00
|
|
|
|
|
|
|
|
Route::middleware('web')
|
2022-01-10 15:47:22 +01:00
|
|
|
->namespace($this->namespace)
|
|
|
|
|
->group(base_path('routes/web-bo.php'));
|
2022-01-10 16:29:33 +01:00
|
|
|
|
|
|
|
|
Route::middleware('web')
|
2022-01-10 15:47:22 +01:00
|
|
|
->namespace($this->namespace)
|
2022-01-10 16:29:33 +01:00
|
|
|
->group(base_path('routes/web-re7.php'));
|
|
|
|
|
});
|
2020-10-21 15:26:21 +02:00
|
|
|
}
|
|
|
|
|
}
|