Answers for "passing params command handler in laravel"

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
1

how to pass parameter in routes of laravel

##Defining Route:##
Route::get('edit-industry/{id}', ['as' => 'admin.editIndustry', 'uses' => 'Industries@edit']);

##Calling Route:##
{{ route('admin.editIndustry',[$id]) }}
Posted by: Guest on October-17-2021

Code answers related to "passing params command handler in laravel"

Browse Popular Code Answers by Language