Changeset View
Changeset View
Standalone View
Standalone View
src/app/Console/Kernel.php
Show All 10 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) | ||||
{ | { | ||||
// This command imports countries and the current set of IPv4 and IPv6 networks allocated to countries. | // This imports countries and the current set of IPv4 and IPv6 networks allocated to countries. | ||||
$schedule->command('data:import')->dailyAt('05:00'); | $schedule->command('data:import')->dailyAt('05:00'); | ||||
// This notifies users about coming password expiration | // This notifies users about coming password expiration | ||||
$schedule->command('password:retention')->dailyAt('06:00'); | $schedule->command('password:retention')->dailyAt('06:00'); | ||||
// These apply wallet charges | // This applies wallet charges | ||||
$schedule->command('wallet:charge')->dailyAt('00:00'); | $schedule->command('wallet:charge')->everyFourHours(); | ||||
$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 | // This removes deleted storage files/file chunks from the filesystem | ||||
//$schedule->command('wallet:charge')->everyFourHours(); | |||||
// This command removes deleted storage files/file chunks from the filesystem | |||||
$schedule->command('fs:expunge')->hourly(); | $schedule->command('fs:expunge')->hourly(); | ||||
// This notifies users about an end of the trial period | |||||
$schedule->command('wallet:trial-end')->dailyAt('07:00'); | |||||
} | } | ||||
/** | /** | ||||
* 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 |