Locale and Timezone #32
Answered
by
saade
invaders-xx
asked this question in
Q&A
-
Is it possible to set locale and timezone based on user's profile instead on config ? |
Beta Was this translation helpful? Give feedback.
Answered by
saade
Jul 27, 2022
Replies: 1 comment
-
You can override the public function getConfig(): array
{
return array_merge(parent::getConfig(), [
'timeZone' => auth()->user()->timezone, // or similar
]);
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
invaders-xx
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can override the
getConfig
method and override the configuration you need.