Support the ongoing development of Laravel.io →
posted 10 years ago
Configuration
Last updated 2 years ago.
0

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';

});
Last updated 2 years ago.
0

rjv,

I'm having the same issues. Did you manage to fix the problem?

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

rjv rjv Joined 9 Dec 2013

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.