Update source into github
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
namespace App\Console;
|
||||
|
||||
use Illuminate\Console\Scheduling\Schedule;
|
||||
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
||||
|
||||
class Kernel extends ConsoleKernel
|
||||
{
|
||||
/**
|
||||
* Define the application's command schedule.
|
||||
*
|
||||
* @param \Illuminate\Console\Scheduling\Schedule $schedule
|
||||
* @return void
|
||||
*/
|
||||
protected function schedule(Schedule $schedule)
|
||||
{
|
||||
/* Remove Session sanctum */
|
||||
$schedule->command('sanctum:prune-expired --hours=24')->daily();
|
||||
|
||||
/* Check Daily Suspend Hosting */
|
||||
$schedule->command('hosting:expiry')
|
||||
->timezone("Asia/Ho_Chi_Minh")
|
||||
->dailyAt("00:00");
|
||||
|
||||
/* Check Daily Mail Hosting Expiry */
|
||||
$schedule->command('hosting:mail')
|
||||
->timezone("Asia/Ho_Chi_Minh")
|
||||
->dailyAt("00:00");
|
||||
|
||||
/* Check Daily Mail VPS Expiry */
|
||||
$schedule->command('vps:mail')
|
||||
->timezone("Asia/Ho_Chi_Minh")
|
||||
->dailyAt("00:00");
|
||||
|
||||
/* Check Daily Suspend Hosting */
|
||||
$schedule->command('vps:expiry')
|
||||
->timezone("Asia/Ho_Chi_Minh")
|
||||
->dailyAt("09:54");
|
||||
}
|
||||
|
||||
/**
|
||||
* Register the commands for the application.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function commands()
|
||||
{
|
||||
$this->load(__DIR__.'/Commands');
|
||||
|
||||
require base_path('routes/console.php');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user