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

If you save that client to a session Session::put('key','value) then that's possible.

0

Thist code

Route('request',function(){
     $client = Input::get('test');
     Session::put('client',$client);
});
0

dietercoopman said:

If you save that client to a session Session::put('key','value) then that's possible.

Where exactly in the code would this go and is it different than the Session::flash('key', 'value') ?

0

thecloudpartner said:

dietercoopman said:

If you save that client to a session Session::put('key','value) then that's possible.

Where exactly in the code would this go and is it different than the Session::flash('key', 'value') ?

You will set the session on the first route to use on the second. It can be on your controller or directly on route's function.

Session::flash() will kill the session variable after the next request. Session::put() will keep it until you explicitly destroy (or expires).

Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.