抖音小程序

Kernel.php 1.1KB

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