Answers for "Laravel pass data to command"

PHP
1

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'));
    }
Posted by: Guest on July-15-2021

Code answers related to "Laravel pass data to command"

Browse Popular Code Answers by Language