Conditions | 3 |
Paths | 4 |
Total Lines | 24 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function boot() |
||
19 | { |
||
20 | if ($this->app->runningInConsole()) |
||
21 | { |
||
22 | $this->publishes([ |
||
23 | __DIR__ . '/../resources/lang/' => resource_path('lang/vendor/crud'), |
||
24 | ], 'crud'); |
||
25 | |||
26 | $this->publishes([ |
||
27 | __DIR__ . '/../resources/views/' => resource_path('views/vendor/crud'), |
||
28 | ], 'crud'); |
||
29 | } |
||
30 | |||
31 | if ($this->app->runningUnitTests()) |
||
32 | { |
||
33 | $this->loadViewsFrom(__DIR__ . '/../resources/views/', 'crud'); |
||
34 | $this->loadTranslationsFrom(__DIR__ . '/../resources/lang/', 'crud'); |
||
35 | } |
||
36 | else |
||
37 | { |
||
38 | $this->loadViewsFrom(resource_path('views/vendor/crud'), 'crud'); |
||
39 | $this->loadTranslationsFrom(resource_path('lang/vendor/crud'), 'crud'); |
||
40 | } |
||
41 | } |
||
42 | |||
52 |