Kernel.php
574 Bytes
<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
protected function schedule(Schedule $schedule)
{
$schedule->command('vacancy:delete_expired')->dailyAt('00:00');
$schedule->command('vacancy:dispatch')->everyMinute();
$schedule->command('resume:dispatch')->everyMinute();
}
protected function commands()
{
$this->load(__DIR__.'/Commands');
require base_path('routes/console.php');
}
}