Where and how are values from .env defined as PHP constants

I’ve actually done the same thing, but an environment variable is not the same thing as a constant. See here: https://github.com/roots/bedrock/blob/master/config/application.php#L42-L45

You still need to define the constant in one of your PHP files with define('COOKIE_DOMAIN', getenv('COOKIE_DOMAIN'));

3 Likes