Kernel.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. namespace App\Console;
  3. use App\Console\Commands\ClearCacheCommand;
  4. use App\Console\Commands\ClearUserCommand;
  5. use App\Console\Commands\CodeCommand;
  6. use App\Console\Commands\CouponCommand;
  7. use App\Console\Commands\OrderAffirm;
  8. use App\Console\Commands\OrderAutoExpressl;
  9. use App\Console\Commands\OrderFinish;
  10. use App\Console\Commands\OrderRepeal;
  11. use App\Console\Commands\PlatformGoods;
  12. use App\Console\Commands\ProvinceCodeCommand;
  13. use App\Console\Commands\ReturnOrderCommand;
  14. use App\Console\Commands\ShareShop;
  15. use App\Console\Commands\ShopPerformance;
  16. use App\Console\Commands\TestCommand;
  17. use Illuminate\Console\Scheduling\Schedule;
  18. use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
  19. class Kernel extends ConsoleKernel
  20. {
  21. /**
  22. * The Artisan commands provided by your application.
  23. *
  24. * @var array
  25. */
  26. protected $commands = [
  27. //
  28. TestCommand::class,
  29. ];
  30. /**
  31. * Define the application's command schedule.
  32. *
  33. * @param \Illuminate\Console\Scheduling\Schedule $schedule
  34. * @return void
  35. */
  36. protected function schedule(Schedule $schedule)
  37. {
  38. // $schedule->command('inspire')
  39. // ->hourly();
  40. }
  41. /**
  42. * Register the commands for the application.
  43. *
  44. * @return void
  45. */
  46. protected function commands()
  47. {
  48. $this->load(__DIR__.'/Commands');
  49. require base_path('routes/console.php');
  50. }
  51. }