Total Complexity | 4 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class MultilingualServiceProvider extends ServiceProvider |
||
10 | { |
||
11 | /** |
||
12 | * Bootstrap the application services. |
||
13 | * |
||
14 | * @return void |
||
15 | */ |
||
16 | public function boot() |
||
17 | { |
||
18 | if ($this->app->runningInConsole()) { |
||
19 | $this->registerPublishing(); |
||
20 | $this->loadMigrationsFrom(__DIR__.'/../../migrations'); |
||
21 | } |
||
22 | |||
23 | View::share('locale', $this->app->make(Locale::class)); |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * Register the application services. |
||
28 | * |
||
29 | * @return void |
||
30 | */ |
||
31 | public function register() |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * Register the package's publishable resources. |
||
38 | * |
||
39 | * @return void |
||
40 | */ |
||
41 | protected function registerPublishing() |
||
49 | } |
||
50 | } |
||
51 |