There's case which I have to query for common environment all the time, having to typing env("<environment>") can be cumbersome.
Add utility function as an alias to common environment query
Example:
env("development") can have env.isDev, the same can be applied to env.isProd and so on.
That utilities can be functions or simple values without needing to calling a function
There's case which I have to query for common environment all the time, having to typing
env("<environment>")can be cumbersome.Add utility function as an alias to common environment query
Example:
env("development")can haveenv.isDev, the same can be applied toenv.isProdand so on.That utilities can be functions or simple values without needing to calling a function