| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class Update extends Command |
||
| 6 | { |
||
| 7 | protected $signature = 'twill:update'; |
||
| 8 | |||
| 9 | protected $description = 'Publish new updated Twill assets'; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * Executes the console command. |
||
| 13 | * |
||
| 14 | * @return mixed |
||
| 15 | */ |
||
| 16 | public function handle() |
||
| 17 | { |
||
| 18 | $this->publishAssets(); |
||
| 19 | $this->call('cache:clear'); |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Publishes the package frontend assets. |
||
| 24 | * |
||
| 25 | * @return void |
||
| 26 | */ |
||
| 27 | private function publishAssets() |
||
| 33 | ]); |
||
| 34 | } |
||
| 36 |