Kernel.php 931 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace App\Console;
  3. use App\Console\Commands\overTimeOrder;
  4. use Illuminate\Console\Scheduling\Schedule;
  5. use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
  6. class Kernel extends ConsoleKernel
  7. {
  8. /**
  9. * The Artisan commands provided by your application.
  10. *
  11. * @var array
  12. */
  13. protected $commands = [
  14. //
  15. 'overOrder'=>overTimeOrder::class,
  16. ];
  17. /**
  18. * Define the application's command schedule.
  19. *
  20. * @param \Illuminate\Console\Scheduling\Schedule $schedule
  21. * @return void
  22. */
  23. protected function schedule(Schedule $schedule)
  24. {
  25. // $schedule->command('inspire')
  26. // ->hourly();
  27. }
  28. /**
  29. * Register the commands for the application.
  30. *
  31. * @return void
  32. */
  33. protected function commands()
  34. {
  35. $this->load(__DIR__.'/Commands');
  36. require base_path('routes/console.php');
  37. }
  38. }