Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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'));
    }    
 
PREVIOUS NEXT
Tagged: #send #parameter #command #laravel
ADD COMMENT
Topic
Name
4+2 =