You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
812 B

3 years ago
3 years ago
3 years ago
  1. <?php
  2. namespace App\Commands;
  3. use Illuminate\Console\Scheduling\Schedule;
  4. use LaravelZero\Framework\Commands\Command;
  5. class SettingsMenuCommand extends Command
  6. {
  7. /**
  8. * The signature of the command.
  9. *
  10. * @var string
  11. */
  12. protected $signature = 'settings:menu';
  13. /**
  14. * The description of the command.
  15. *
  16. * @var string
  17. */
  18. protected $description = 'Command description';
  19. /**
  20. * Execute the console command.
  21. *
  22. * @return mixed
  23. */
  24. public function handle()
  25. {
  26. // create menu
  27. $builder = $this->menu('Settings')
  28. ->addSubMenu('Sources', [
  29. 'd',
  30. 'e'
  31. ]);
  32. $builder->addLineBreak('-');
  33. $mainmenu = $builder->build();
  34. $mainmenu->open();
  35. }
  36. }