UpdateCommand.php 481 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace Dcat\Admin\Console;
  3. use Illuminate\Console\Command;
  4. class UpdateCommand extends Command
  5. {
  6. protected $signature = 'admin:update';
  7. protected $description = 'Update the admin package';
  8. public function handle()
  9. {
  10. $this->call('admin:publish', [
  11. '--assets' => true,
  12. '--migrations' => true,
  13. '--lang' => true,
  14. '--force' => true,
  15. ]);
  16. $this->call('migrate');
  17. }
  18. }