laravel get session variable in controller

51

$value = Session::get('variableSetOnPageA');
$request->session()->put('key','value');
// Via a request instance...
$request->session()->put('key', 'value');
 
// Via the global "session" helper...
session(['key' => 'value']);

Comments

Submit
0 Comments