laravel records return to initial values once connection session destroyed code example Example: session variable in laravel $request->session()->put('key','value');