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

What is the `contains` rule?

And when would you use it?

Joel Clermont
Joel Clermont
2025-07-18

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

Ok, this is the final day of our week-long focus on validation. I hope you enjoyed it, and checked out the updated validation book for yourself.

In today's video, I'll explain how the new contains rule works, and connect it to a rule you're already familiar with to make it easier to understand.

Watch Now (3 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. And here's a link to the validation book I mentioned in the video.

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.