Skip to content

Instantly share code, notes, and snippets.

@dannetstudio
Created October 6, 2022 17:48
Show Gist options
  • Select an option

  • Save dannetstudio/07e185f2198000f4230b5093ac2250ae to your computer and use it in GitHub Desktop.

Select an option

Save dannetstudio/07e185f2198000f4230b5093ac2250ae to your computer and use it in GitHub Desktop.
getUserTimeZone Helper
<?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