By redirecting to another route.
return Redirect:to('/form/thanks');
Route::get('/form/thanks', function() {
return View::make('thanks');
});
@beaverusiv Thanks for your reply, How to pass the Values which was stored in the variable $user_data (array)
You can return values to a view with
$user_data=[];
//use the name of the var with quotes then you can use the var in the view
return View::make('view')->with(compact('user_data'));
Hi,
First we are returning the code below
return Redirect:to('/form/thanks');
after which we are calling
return View::make('view')->with(compact('user_data'));
So how to pass the values to Redirect:to and the pass the same to View::make
jalimg,
return Redirect::to('/form/thanks')->with('user_data', $user_data);
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community