I have a link
{{ Html::link('/Edit/$user->s_no', 'Edit', array('id' => $user->s_no,'class' =>'btn btn-info'), true)}}
Route
Route::get('/Edit/{id}',['as'=>'EditUser','uses'=>'RegistrationController@Edit']);
controller
public function Edit($id)
{
echo $id;
}
But when i echo $id it always shows $user->s_no(static) as value.I want to get id as 1,2,3 etc.What is wrong with me?I don't know i am doing right way or not.Please help me?
Try this :
or
and if you setting id dynamically then you should get that value in variable first and then concatenate it with id like: