If you save that client to a session Session::put('key','value) then that's possible.
Thist code
Route('request',function(){
$client = Input::get('test');
Session::put('client',$client);
});
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') ?
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).
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community