without $request how to set session in controller laravel code example Example: laravel get session variable in controller $value = Session::get('variableSetOnPageA');