D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
management-zone
/
htdocs
/
management-zone.com
/
app
/
Console
/
Filename :
Kernel.php
back
Copy
<?php namespace App\Console; use App\BasicExtra; use App\Console\Commands\SubscriptionChecker; 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 \Illuminate\Console\Scheduling\Schedule $schedule * @return void */ protected function schedule(Schedule $schedule) { // $schedule->command('inspire') // ->hourly(); $bex = BasicExtra::first(); if ($bex->recurring_billing == 1) { $schedule->command('subscription:check')->daily(); } } /** * Register the commands for the application. * * @return void */ protected function commands() { $this->load(__DIR__.'/Commands'); require base_path('routes/console.php'); } }