Jak wyślij parametr z poleceniem w Laravel
1 ) protected $signature = 'testCommand:refresh {name} {option}';
2 ) php artisan help testCommand:refresh
3 ) Usage:
testCommand:refresh <name> <option>
4 ) public function handle()
{
return $this->info('the name is => '.$this->argument('name'). " the option is =>" .$this->argument('option'));
}
Mohamad