Kernel.php 1.5 KB

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