Black Friday: the Laravel testing course is $149 instead of $249, through Dec 7. See the course →
logo

Use factories to make your tests more readable

Only include relevant details in your test setup

Joel Clermont
Joel Clermont
2026-01-26

From our daily Laravel tips email. Get the next one in your inbox.

Your tests might work perfectly, but can someone else read them and understand what's being tested?

In this video, I'll show you a couple small changes that will make your tests much easier to read.

Watch Now (4 min)

And after watching, don't forget to subscribe to our YouTube channel, so you don't miss future videos.

Here to help,

Joel

P.S. Want to level up your Laravel testing skills even more? Check out our testing workshop.

Want a tip like this in your inbox every weekday?

Each one takes less than 2 minutes to read. Join 4,000+ Laravel developers who already get them.

email
No spam. Only real-world advice.
Toss a coin in the jar if you found this helpful.