D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
dateitor
/
www
/
app
/
Console
/
Filename :
Kernel.php
back
Copy
<?php namespace App\Console; use App\Console\Commands\GenerateSiteMap; use Illuminate\Console\Scheduling\Schedule; use App\Console\Commands\PlanExpirationMailCommand; use Illuminate\Foundation\Console\Kernel as ConsoleKernel; class Kernel extends ConsoleKernel { /** * The Artisan commands provided by your application. * * @var array */ protected $commands = [ GenerateSiteMap::class, PlanExpirationMailCommand::class ]; /** * Define the application's command schedule. */ protected function schedule(Schedule $schedule): void { $schedule->command('sitemap:generate')->daily(); $schedule->command(PlanExpirationMailCommand::class)->daily(); } /** * Register the commands for the application. */ protected function commands(): void { $this->load(__DIR__ . '/Commands'); require base_path('routes/console.php'); } }