| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class Update extends Command |
||
| 8 | { |
||
| 9 | protected $signature = 'twill:update'; |
||
| 10 | |||
| 11 | protected $description = 'Publish new updated Twill assets'; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Executes the console command. |
||
| 15 | * |
||
| 16 | * @return mixed |
||
| 17 | */ |
||
| 18 | 1 | public function handle() |
|
| 19 | { |
||
| 20 | 1 | $this->publishAssets(); |
|
| 21 | 1 | $this->info('You should now also run php artisan migrate to execute any new Twill provided migration.'); |
|
| 22 | 1 | } |
|
| 23 | |||
| 24 | /** |
||
| 25 | * Publishes the package frontend assets. |
||
| 26 | * |
||
| 27 | * @return void |
||
| 28 | */ |
||
| 29 | 1 | private function publishAssets() |
|
| 34 | ]); |
||
| 35 | 1 | } |
|
| 37 |