Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public function boot() |
||
14 | { |
||
15 | if ($this->app->runningInConsole()) { |
||
16 | $this->publishes([ |
||
17 | __DIR__.'/../config/config.php' => config_path('inline-translation.php'), |
||
18 | ], 'config'); |
||
19 | } |
||
20 | |||
21 | $this->loadTranslationsFrom(__DIR__.'/translations', 'laravel-inline-translation'); |
||
22 | $this->loadViewsFrom(__DIR__.'/../resources/views', 'inline-translation'); |
||
23 | |||
24 | $this->registerMiddleware(InlineTranslationMiddleware::class); |
||
25 | |||
26 | $this->addRoute(); |
||
27 | } |
||
28 | |||
56 |