Kernel.php 778 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. namespace App\Console;
  3. use App\Console\Test\RegisterUserCommand;
  4. use Illuminate\Console\Scheduling\Schedule;
  5. use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
  6. class Kernel extends ConsoleKernel
  7. {
  8. protected $commands = [
  9. Test\TestCommand::class,
  10. RegisterUserCommand::class,
  11. ];
  12. /**
  13. * Define the application's command schedule.
  14. *
  15. * @param \Illuminate\Console\Scheduling\Schedule $schedule
  16. * @return void
  17. */
  18. protected function schedule(Schedule $schedule)
  19. {
  20. }
  21. /**
  22. * Register the commands for the application.
  23. *
  24. * @return void
  25. */
  26. protected function commands()
  27. {
  28. $this->load(__DIR__ . '/Commands');
  29. require base_path('routes/console.php');
  30. }
  31. }