Search
 
SCRIPT & CODE EXAMPLE
 

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]) }}
Comment

passing parameters with route keyword in blade laravel

<a href="{{ route('blog.by.slug', ['slug' => 'someslug']) }}">...</a>
Comment

PREVIOUS NEXT
Code Example
::  
::  
Php ::  
::  
Php ::  
Javascript ::  
::  
Javascript ::  
::  
::  
::  
::  
::  
Javascript ::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
Javascript ::  
Javascript ::  
::  
::  
Javascript ::  
:: yarn angular cli 
:: js replace space with underscore 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =