laravel add a session variable code example Example: session variable in laravel $request->session()->put('key','value');