To be able to run Browser tests directly in my IDE (without using the artisan dusk command), I want to run php artisan serve --env=dusk.local
. While it indeed starts the local PHP server, it uses the wrong database. It uses the database specified in .env
not the one in .env.dusk.local
.
I ran php artisan cache:clear
thousands of times, but it doesn't change anything.
Running things like php artisan migrate --env=...
works.
Is there a way to achieve my goal without needing to rename my .env.dusk.local
file to .env
before each test?