View file app/Console/Kernel.php

File size: 1.28Kb
  1. <?php
  2.  
  3. namespace App\Console;
  4.  
  5. use Illuminate\Console\Scheduling\Schedule;
  6. use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
  7.  
  8. class Kernel extends ConsoleKernel
  9. {
  10. /**
  11. * The Artisan commands provided by your application.
  12. *
  13. * @var array
  14. */
  15. protected $commands = [
  16. //
  17. ];
  18.  
  19. /**
  20. * Define the application's command schedule.
  21. *
  22. * @param Schedule $schedule
  23. * @return void
  24. */
  25. protected function schedule(Schedule $schedule)
  26. {
  27. $schedule->command('board:restatement')->hourly();
  28. $schedule->command('delete:files')->daily();
  29. $schedule->command('delete:logins')->daily();
  30. $schedule->command('delete:logs')->daily();
  31. $schedule->command('delete:pending')->daily();
  32. $schedule->command('delete:polling')->weekly();
  33. $schedule->command('delete:readers')->weekly();
  34. $schedule->command('add:subscribers')->hourly();
  35. $schedule->command('add:birthdays')->dailyAt('07:00');
  36. $schedule->command('message:send')->everyMinute();
  37. }
  38.  
  39. /**
  40. * Register the commands for the application.
  41. *
  42. * @return void
  43. */
  44. protected function commands()
  45. {
  46. $this->load(__DIR__ . '/Commands');
  47.  
  48. require base_path('routes/console.php');
  49. }
  50. }