Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
marco76tv committed Dec 21, 2024
1 parent e96198f commit 85530bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Http/Livewire/Lang/Change.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function mount(): void
$langs = LaravelLocalization::getSupportedLocales();
unset($langs[$this->lang]);
$this->url = Request::getRequestUri();
$langs = Arr::map($langs, function (array $item, $key) {
$langs = Arr::map($langs, function (array $item, string $key) {
$url = LaravelLocalization::getLocalizedURL($key, $this->url, [], true);
if (false !== $url) {
$url = Str::of($url)->replace(url(''), '')->toString();
Expand Down

0 comments on commit 85530bd

Please sign in to comment.