$env = $app->detectEnvironment(function()
{
return getenv('ENV') ?: 'local';
});
If ENV variable exists, use that, if not, use 'local'
I think it doesn't make sense for me. I want my site to have production
environment set on the hosting and I can't change environment variables there. So I need to have local
environment on my local server and production
everywhere else.
But again, why did it change?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community