Webiondev123
1 year ago
5720
2
Laravel

How can I pass parameter in route href={{Route('test'./$val}} to blade view?

Posted 1 year ago by Webiondev123

How can I pass parameter in route href={{Route('test'./$val}}

<p><a href={{Route('test'./$val}}" class="btn btn-info btn-xs" role="button">know more</a> 

Route::get('/test/{id}', '[email protected]')->name('test');


 public function test($id){

        return view('test')->with('id', $id);

    }

Route not found

Please sign in or create an account to participate in this conversation.