%PDF- %PDF-
Direktori : /home/forge/api-takeaseat.eco-n-tech.co.uk/app/Console/ |
Current File : //home/forge/api-takeaseat.eco-n-tech.co.uk/app/Console/Kernel.php |
<?php namespace App\Console; use App\Console\Commands\BookingReminders; use App\Console\Commands\CollectPayments; use App\Console\Commands\CreateStripeCustomers; use App\Console\Commands\PruneAvailability; use App\Console\Commands\PruneMessages; 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 = [ BookingReminders::class, CollectPayments::class, PruneAvailability::class, PruneMessages::class ]; /** * Define the application's command schedule. * * @param \Illuminate\Console\Scheduling\Schedule $schedule * @return void */ protected function schedule(Schedule $schedule) { $schedule->command(BookingReminders::class)->hourly(); $schedule->command(CollectPayments::class)->hourly(); $schedule->command(PruneAvailability::class)->everyThreeHours(); $schedule->command(PruneMessages::class)->daily(); } /** * Register the commands for the application. * * @return void */ protected function commands() { $this->load(__DIR__.'/Commands'); require base_path('routes/console.php'); } }