Created
October 6, 2022 17:48
-
-
Save dannetstudio/07e185f2198000f4230b5093ac2250ae to your computer and use it in GitHub Desktop.
getUserTimeZone Helper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| static public function getUserTimeZone() { | |
| return optional(auth()->user())->timezone ?? config('app.timezone'); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment