Skip to content

Commit b89a828

Browse files
committed
🔧 add more setting helpers
1 parent 5fdeaf0 commit b89a828

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

setting/setting.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,11 @@ func IsDev() bool {
2727
func IsDebug() bool {
2828
return env("APP_DEBUG", "false") == "true"
2929
}
30+
31+
func IsStaging() bool {
32+
return env("APP_ENV", "dev") == "staging"
33+
}
34+
35+
func IsProduction() bool {
36+
return env("APP_ENV", "dev") == "production"
37+
}

0 commit comments

Comments
 (0)