Where-in-the-World-is-Ben/app/Console/Kernel.php
2022-11-01 04:29:55 +00:00

34 lines
815 B
PHP

<?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)
{
$schedule->command('digest:send --daily')->daily();
$schedule->command('digest:send --weekly')->weekly();
$schedule->command('digest:send --monthly')->monthly();
}
/**
* Register the commands for the application.
*
* @return void
*/
protected function commands()
{
$this->load(__DIR__.'/Commands');
require base_path('routes/console.php');
}
}