Conditions | 5 |
Paths | 16 |
Total Lines | 27 |
Code Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php namespace GeneaLabs\LaravelModelCaching\Console\Commands; |
||
11 | public function handle() |
||
12 | { |
||
13 | if ($this->option('assets')) { |
||
14 | $this->call('casts:publish', ['--assets' => true]); |
||
15 | } |
||
16 | |||
17 | if ($this->option('config')) { |
||
18 | $this->call('vendor:publish', [ |
||
19 | '--provider' => Service::class, |
||
20 | '--tag' => ['config'], |
||
21 | '--force' => true, |
||
22 | ]); |
||
23 | } |
||
24 | |||
25 | if ($this->option('views')) { |
||
26 | $this->call('vendor:publish', [ |
||
27 | '--provider' => Service::class, |
||
28 | '--tag' => ['views'], |
||
29 | '--force' => true, |
||
30 | ]); |
||
31 | } |
||
32 | |||
33 | if ($this->option('migrations')) { |
||
34 | $this->call('vendor:publish', [ |
||
35 | '--provider' => Service::class, |
||
36 | '--tag' => ['migrations'], |
||
37 | '--force' => true, |
||
38 | ]); |
||
42 |