Changeset View
Changeset View
Standalone View
Standalone View
src/app/Console/Kernel.php
Show All 19 Lines | class Kernel extends ConsoleKernel | ||||
* Define the application's command schedule. | * Define the application's command schedule. | ||||
* | * | ||||
* @param Schedule $schedule The application's command schedule | * @param Schedule $schedule The application's command schedule | ||||
* | * | ||||
* @return void | * @return void | ||||
*/ | */ | ||||
protected function schedule(Schedule $schedule) | protected function schedule(Schedule $schedule) | ||||
{ | { | ||||
// $schedule->command('inspire') | // This command imports countries and the current set of IPv4 and IPv6 networks allocated to countries. | ||||
// ->hourly(); | $schedule->command('data:import')->dailyAt('05:00'); | ||||
$schedule->command('wallet:charge')->dailyAt('00:00'); | |||||
$schedule->command('wallet:charge')->dailyAt('04:00'); | |||||
$schedule->command('wallet:charge')->dailyAt('08:00'); | |||||
$schedule->command('wallet:charge')->dailyAt('12:00'); | |||||
$schedule->command('wallet:charge')->dailyAt('16:00'); | |||||
$schedule->command('wallet:charge')->dailyAt('20:00'); | |||||
// this is a laravel 8-ism | |||||
//$schedule->command('wallet:charge')->everyFourHours(); | |||||
} | } | ||||
/** | /** | ||||
* Register the commands for the application. | * Register the commands for the application. | ||||
* | * | ||||
* @return void | * @return void | ||||
*/ | */ | ||||
protected function commands() | protected function commands() | ||||
Show All 10 Lines |