php - how to pass variable in route name in laravel? -


i have defined route

route::get('/edit-industry/{id}', 'industries@edit')->name('admin.editindustry'); 

and passing variable by

{{ route('admin.editindustry', ['id'=>1]) }} 

or

{{ route('admin.editindustry', [1]) }} 

this not working. how pass variable here?

if have 1 parameter can :

{{ route('admin.editindustry', 1) }} 

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -