Back to the Learning!

Laracasts is packed full with over 1,000 lessons just like this one.

Sign up to get full access or log in to your account and sit back.

Published On Feb. 7th 2018

Testing Laravel: How to Test Validation Rules

Episode 17 Run Time 13:21

Download

A frequent testing question that pops up relates to how you go about testing validation rules. Or, in other words, if we need to ensure that, say, a valid email address is required when a contact form is submitted by the user, how exactly do we do that? I'll show you how in this episode, using a real world example.