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

Well further to this I can actually die and dump the dat afrom within the env.local.php file so its actually loading this file, its somehow not then picking up the local/connections array values.

So this fails:

  'host'      => getenv('DB_HOST'),
    'database'  => getenv('DB_NAME'),
    'username'  => getenv('DB_USER'),
    'password'  => getenv('DB_PASSWORD'),

and if hardcoded it works:

   'host'      =>'localhost,
    'database'  =>'homestead',
    'username'  => 'homestead',
    'password'  =>'secret',

So any ideas why this is seems so and that the 'getenv('DB_HOST') etc ' is not being picked up?

Last updated 2 years ago.
0

Solved this there was a spelling issue (go figure) in the getenv('DB_USER') my mistake...

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.