Total Complexity | 2 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class LocaleRouteServiceProvider extends ServiceProvider |
||
12 | { |
||
13 | protected $defer = false; |
||
14 | |||
15 | public function boot(Router $router) |
||
16 | { |
||
17 | $this->publishes([__DIR__ . '/config/localeroute.php' => config_path('localeroute.php')]); |
||
18 | $this->mergeConfigFrom(__DIR__ . '/config/localeroute.php', 'localeroute'); |
||
19 | |||
20 | $router->aliasMiddleware('locale.session', SetSessionLocale::class); |
||
21 | } |
||
22 | |||
23 | public function register() |
||
29 | } |
||
30 | } |
||
31 |