vendredi 14 juin 2019

Larave 5.8 .env.testing file is not working

I created an .env.testing file with my credentials, everything the same as .env besides a different table name for the database.

I tried php artisan config:clear which apparently deletes the cached config file in bootstrap/cache/config.php and it actually broke the database connection. If I recached the file by running php artisan config:cache the cached file is back, but without the credentials in the .env.testing file. When I run phpunit again it connects to the wrong DB, the DB name that is stored in .env not .env.testing.

Is this for real? Did latest Laravel release break test environments?

Aucun commentaire:

Enregistrer un commentaire