PostInstall.php 714 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace App\Console\Commands;
  3. use Illuminate\Console\Command;
  4. class PostInstall extends Command
  5. {
  6. /**
  7. * The name and signature of the console command.
  8. *
  9. * @var string
  10. */
  11. protected $signature = 'app:post-install';
  12. /**
  13. * The console command description.
  14. *
  15. * @var string
  16. */
  17. protected $description = 'Command description';
  18. /**
  19. * Execute the console command.
  20. */
  21. public function handle()
  22. {
  23. //
  24. $this->info('post install start');
  25. $this->call('create:opensearch.index');
  26. $this->call('init:system.channel');
  27. $this->call('init:system.dict');
  28. $this->info('post install done');
  29. }
  30. }