Keep your testing database separate from development

Mastering Laravel October 30, 2025
Video Thumbnail
Mastering Laravel Logo

Mastering Laravel

View Channel

About

Short, practical Laravel tips learned in the trenches building real-world applications.

Video Description

In a previous video, I shared how to efficiently seed your database while running tests. Someone asked me "How can I do this, but not lose all my other data?" In today's video, I show how to easily configure your tests to use a separate database from your local development database. This is something I do on every single project, and I think you'll find it a nice improvement for your projects as well. Want a short practical tip delivered to your inbox? Sign up for the Mastering Laravel newsletter: https://masteringlaravel.io View the article for this tip: https://masteringlaravel.io/daily/2025-10-31-video-keep-your-testing-database-separate-from-development

You May Also Like