File manager - Edit - /var/www/payraty/inventory_main/vendor/laravel/framework/src/Illuminate/Console/Scheduling/ScheduleTestCommand.php
Back
<?php namespace Illuminate\Console\Scheduling; use Illuminate\Console\Command; class ScheduleTestCommand extends Command { /** * The console command name. * * @var string */ protected $name = 'schedule:test'; /** * The console command description. * * @var string */ protected $description = 'Run a scheduled command'; /** * Execute the console command. * * @param \Illuminate\Console\Scheduling\Schedule $schedule * @return void */ public function handle(Schedule $schedule) { $commands = $schedule->events(); $commandNames = []; foreach ($commands as $command) { $commandNames[] = $command->command ?? $command->getSummaryForDisplay(); } $index = array_search($this->choice('Which command would you like to run?', $commandNames), $commandNames); $event = $commands[$index]; $this->line('<info>['.date('c').'] Running scheduled command:</info> '.$event->getSummaryForDisplay()); $event->run($this->laravel); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings