christobaby's avatar

how to pass multiple parameter through href="" as url

i want to pass two parameter through the href="" and i want to acces that in my blade file

0 likes
2 replies
tisuchi's avatar

In you view,

<a href="{{ route('name-of-route', ['param1', 'param2']) }}">Click here</a>

In our route-

Route::get('some-url/{param1}/{param2}', [
    'uses'  => 'YourController@index',
    'as'    => 'name-of-route'
]);
1 like

Please or to participate in this conversation.