Stefan Ledin πŸ‡ΈπŸ‡ͺ Webbutvecklare
πŸ‡¬πŸ‡§ Web developer

Laravel Dusk didn’t use the .env.dusk.local file

Suddenly, I found myself having an empty database after each time I ran Laravel Dusk.

Apparently, Dusk ran the test suite against my local development database and not the one specified in my `.env.dusk.local`

It was an easy fix though, I just ran the following commands and everything went back to normal again.

$ php artisan config:clear
$ php artisan cache:clear