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

Why the nullable validation rule is useful

Sometimes code is for your team, not just the PHP runtime

Joel Clermont
Joel Clermont
2025-12-12

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

Today I want to talk about the intersection of two of my favorite topics in Laravel: validation and testing.

Did you know there is a validation rule that you literally cannot make fail?

In today's video, I show what this rule is and why it's still a valuable rule.

Along the way, I demonstrate how I like to write validation tests in my application.

Watch Now (7 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 someone to review your Laravel application and point out areas to make it better in just a few days?

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.