PHP code snippet – How send parameter with command in 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')); }