use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
//
protected function schedule(Schedule $schedule)
{
if (!config('app.installed')) {
return;
}
$schedule_time = config('app.schedule_time');
$schedule->command('report:cache')->everySixHours();
$schedule->command('reminder:invoice')->dailyAt($schedule_time);
$schedule->command('reminder:bill')->dailyAt($schedule_time);
$schedule->command('recurring:check')->dailyAt($schedule_time);
$schedule->command('storage-temp:clear')->dailyAt('17:00');
}
//
protected function scheduleTimezone()
{
return config('app.timezone');
}
}