how send parameter with command in laravel

Solutions on MaxInterview for how send parameter with command in laravel by the best coders in the world

showing results for - "how send parameter with command in laravel"
Pedro
12 Jan 2018
11 ) protected $signature = 'testCommand:refresh {name} {option}';
22 ) php artisan help testCommand:refresh
33 ) Usage:
4  testCommand:refresh <name> <option>
54 ) public function handle()
6    {
7        return $this->info('the name is => '.$this->argument('name'). " the option is =>" .$this->argument('option'));
8    }