Category: Laravel, Laravel, PHP, PHP

The combination of the two forced me to revisit the precedence of app configuration when testing Laravel. This is something I covered in Confident Laravel, but wanted to document it in a post.

But it can be a bit of a gotcha within the context of a Laravel application.

This was done in an effort to improve performance, as well as create a stronger separation between feature and unit tests.

For example, I change the DB_DRIVER to mysql and the APP_URL for Dusk to the built-in Artisan web server.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners