how to pass a variable from controller to view in laravel and print it on view page code example
Example: laravel pass variables to view
return view('home')->with('userName',$userName);
return view('home')->with('userName',$userName);