$locale]); if (Auth::check()) { Auth::user()->update(['locale' => $locale]); } return redirect()->back(); } }