laravel command parameter optional

Solutions on MaxInterview for laravel command parameter optional by the best coders in the world

showing results for - "laravel command parameter optional"
Isidora
14 Oct 2017
1protected $signature = 'order:check {--silent=y}'
2
3  
4  
5public function handle()
6{
7$silent = $this->option('silent');
8if ($this->confirm('This will run the command code continue?') || $silent) {