Kernel.php 1.5 KB

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