locale = App::getLocale(); } /** * Save the selected interface language and reload the page in that language. */ public function updatedLocale(): void { $this->validate([ 'locale' => ['required', 'string', Rule::in(array_keys(config('app.available_locales')))], ]); Auth::user()->update(['locale' => $this->locale]); $this->redirectRoute('appearance.edit'); } }