Kernel.php 1.6 KB

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