I am debugging env vars with Laravel 8 in production.
In local, I have no problem.
In production, when I do:
dd(env('DB_CONNECTION'),
I get null, but my app works, which means it is connecting to the DB.
Why isn't it working ?
I tried to clear all caches with php artisan optimize
, with no success.
Any idea ?