Are you sure the variable is being set? Create a route and just try returning the variable from there.
Also a better way to write that down would be:
$env = $app->detectEnvironment(function() {
return getenv('APP_NAME_ENV') ?: 'local';
});
rjv,
I'm having the same issues. Did you manage to fix the problem?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.