I am trying to retrieve variable to display along with message this way. but, i came to know this actually is not a way. $count
is the variable to be displayed along with message.
public function now(Request $request)
{
$name=$request->get('name');
$contact=$request->get('contact');
$level=$request->get('level');
$count=$level*3.5;
return redirect('/lost')
->with ('message','You have increased your level to $count.');
}