Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel command parameter optional

protected $signature = 'order:check {--silent=y}'

  
  
public function handle()
{
$silent = $this->option('silent');
if ($this->confirm('This will run the command code continue?') || $silent) {
 
PREVIOUS NEXT
Tagged: #laravel #command #parameter #optional
ADD COMMENT
Topic
Name
7+1 =