Answers for "how to send argument to the command laraval"

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 "how to send argument to the command laraval"

Browse Popular Code Answers by Language