Skip to content

Commit

Permalink
🔧 add more setting helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
acidjazz committed Mar 7, 2024
1 parent 5fdeaf0 commit b89a828
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions setting/setting.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,11 @@ func IsDev() bool {
func IsDebug() bool {
return env("APP_DEBUG", "false") == "true"
}

func IsStaging() bool {
return env("APP_ENV", "dev") == "staging"
}

func IsProduction() bool {
return env("APP_ENV", "dev") == "production"
}

0 comments on commit b89a828

Please sign in to comment.