access session in main controller laravel 6 code example Example: laravel get session variable in controller $value = Session::get('variableSetOnPageA');