Page MenuHomePhorge

Kernel.php
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

Kernel.php

<?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 Schedule $schedule The application's command schedule
*
* @return void
*/
protected function schedule(Schedule $schedule)
{
// This command imports countries and the current set of IPv4 and IPv6 networks allocated to countries.
$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.
*
* @return void
*/
protected function commands()
{
$this->load(__DIR__ . '/Commands');
if (\app('env') == 'local') {
$this->load(__DIR__ . '/Development');
}
include base_path('routes/console.php');
}
}

File Metadata

Mime Type
text/x-php
Expires
Fri, Apr 24, 2:02 PM (1 w, 11 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
7e/d9/39be8f66025f1e42866faec2477a
Default Alt Text
Kernel.php (1 KB)

Event Timeline