Closed aggunawan closed 4 years ago
Based on this article. When we cache all configuration use config:cache command, env() method will return null.
config:cache
env()
I found direct call to env() method at blade file eg. skeleton.blade.php.
Can we replace env() with config() method ? or we have better reason why we need to stick with env() ?
config()
no, we don't have any reason for that, feel free to pull request
Based on this article. When we cache all configuration use
config:cache
command,env()
method will return null.I found direct call to
env()
method at blade file eg. skeleton.blade.php.Can we replace
env()
withconfig()
method ? or we have better reason why we need to stick withenv()
?