elektronika_bagisto/app/Console/Kernel.php

44 lines
1.0 KiB
PHP
Raw Normal View History

2020-04-23 08:52:54 +00:00
<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
//
];
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
$schedule->command('booking:cron')->dailyAt('3:00');
2021-10-30 15:39:52 +00:00
$schedule->command('invoice:cron')->dailyAt('3:00');
2022-10-10 13:50:40 +00:00
$schedule->command('product:index --type=price')->dailyAt('24:00');
2020-04-23 08:52:54 +00:00
}
/**
* Register the commands for the application.
*
* @return void
*/
protected function commands()
{
$this->load(__DIR__.'/Commands');
$this->load(__DIR__.'/../../packages/Webkul/Core/src/Console/Commands');
2020-04-23 08:52:54 +00:00
require base_path('routes/console.php');
}
}