Answers for "laravel get session data in controller"

PHP
1

set session data in laravel

Session::put('key', 'value');

session(['key' => 'value']);
Posted by: Guest on September-24-2020
1

laravel get session variable in controller

$value = Session::get('variableSetOnPageA');
Posted by: Guest on November-26-2020

Code answers related to "laravel get session data in controller"

Browse Popular Code Answers by Language