Where-in-the-World-is-Ben/app/Console/Kernel.php

35 lines
815 B
PHP
Raw Normal View History

2022-08-23 19:11:43 +00:00
<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
2022-11-01 04:29:55 +00:00
$schedule->command('digest:send --daily')->daily();
$schedule->command('digest:send --weekly')->weekly();
$schedule->command('digest:send --monthly')->monthly();
2022-08-23 19:11:43 +00:00
}
/**
* Register the commands for the application.
*
* @return void
*/
protected function commands()
{
$this->load(__DIR__.'/Commands');
require base_path('routes/console.php');
}
}