Support the ongoing development of Laravel.io →
Input Forms Validation
Last updated 2 years ago.
0

@beaverusiv i'm new to laravel and php, could you help me to achieve the same on laravel

0
return Redirect:to('/form/thanks');
Route::get('/form/thanks', function() {
    return View::make('thanks');
});
0

@beaverusiv Thanks for your reply, How to pass the Values which was stored in the variable $user_data (array)

0

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'));
Last updated 9 years ago.
0

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

0

jalimg,

return Redirect::to('/form/thanks')->with('user_data', $user_data);

0

Sign in to participate in this thread!

Eventy

Your banner here too?

jaiimg jaiimg Joined 7 Jan 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.