currentRouteName = request()->route()->getName(); $this->currentRouteParams = request()->route()->parameters(); $this->selectedTimezone = config('app.timezone', 'UTC'); } public function updatedSelectedTimezone() { // Handle timezone change here // You can emit an event or update user settings auth()->user()->update([ 'timezone' => $this->selectedTimezone, ]); Flux::toast(text: __('Zeitzone erfolgreich aktualisiert'), heading: __('Zeitzone'), variant: 'success'); if ($this->withRedirect) { $this->redirectRoute($this->currentRouteName, $this->currentRouteParams, navigate: true); } } public function with(): array { return [ 'timezones' => \DateTimeZone::listIdentifiers(), ]; } }; ?>