Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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]) }}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pass #parameter #routes #laravel
ADD COMMENT
Topic
Name
8+2 =