fix: settings for user localiation

This commit is contained in:
hackerESQ
2025-07-22 21:52:04 -05:00
parent a13bd9f0dc
commit 519486fe57
+1 -1
View File
@@ -99,7 +99,7 @@ class User extends Authenticatable implements MustVerifyEmail
return Arr::get($this->options, 'locale') ?? request()->getPreferredLanguage($available_locales) ?? config('app.locale');
}
public function setOption(mixed $key, string $value): self
public function setOption(mixed $key, ?string $value = null): self
{
$options = is_array($key) ? $key : [$key => $value];