$request->cookie('appearance', 'system'), ]); } public function update(UpdateAppearanceRequest $request): RedirectResponse { $appearance = $request->string('appearance')->toString(); $this->flashUpdated('Tampilan'); return redirect() ->route('admin.account.appearance') ->withCookie(Cookie::create('appearance') ->withValue($appearance) ->withExpires(now()->addYear()) ->withPath('/') ->withHttpOnly(false) ->withSameSite('lax')); } }