currentCountry = request()->route('country', config('app.domain_country')); $this->currentRouteName = request()->route()->getName(); $this->currentRouteParams = request()->route()->parameters(); } public function updatedCurrentCountry() { $this->currentRouteParams['country'] = $this->currentCountry; $this->redirectRoute($this->currentRouteName, $this->currentRouteParams); } }; ?>