logo
podcast Podcast
get help Get Unstuck

Your app deserves better data. Learn validation from the pros.

A deep dive into validation rules with real-world examples, hands-on exercises, and a dash of fun.

Buy the book go

Over 200 pages and 10 exercises - only $34.99 $24.99

PPP discount auto-applied during checkout

Laravel Validation book cover
quote

This will be the de facto reference for Laravel validation rules. Open it, find your rule, reference the examples, done.

JMac
Jason McCreary
Laravel Shift

So many rules, which one is best?

Laravel includes over 70 built-in rules. Choice is good, but sometimes it can be a bit daunting to know which rule is the best for a specific situation. For example, should this field be excluded or prohibited? Or, what's the difference between digits, integer, and numeric validation?

The Laravel docs are world-class, but wouldn't it be great if you didn't have to reference them so often while trying to get work done?

For every rule, we show you how it works with detailed code examples, explain when you'd use it, and point out things that may trip you up. Once you've worked through the book and exercises, you won't be visiting the docs as often, and when you do, you'll know much more quickly which rule is the right one to use.

Lots of rules

Garbage in, garbage out

No one likes having to clean up messy data, like phone numbers or dates. Are you overwhelmed with bug reports from users typing in bad data and getting an exception? Or even worse, have you ever wondered if a malicious user could get up to mischief because some input wasn't handled properly?

Well-written validation rules can help with all of these scenarios. Enjoy having consistent data, cut down on the noise in your bug reporting, and sleep a little easier at night knowing you've handled user input safely.

We go beyond the mechanics of how rules work, and share our opinions on how to write secure, reliable, and easy-to-maintain validation logic. With our deep experience working in apps of all different sizes, we share some battle-tested strategies that will help you be much more confident in your choice of validation rules.

bad data

Will this really improve my skills?

We've all bought a new tech book, excited to level up our skills. While reading it, we're nodding our head - this is great information! But when we're all done and set the book back on the shelf, we're not really sure if we're any better at our day-to-day work.

This book was designed with learning and retention in mind. We write with a conversational style, and include a number of asides that keep you mentally engaged. For those who learn better by reading code, we also include numerous code blocks showing what data passes and fails validation.

We also offer a set of robust exercises to help you immediately practice what you've learned. Use your favorite editor and get hands-on experience. The exercises automatically check your work and guide you toward a solution without just giving you the answer.

Graded exercises
quote

Neglecting to properly validate application input is like crossing a tightrope without a safety net; sooner or later a mistake will be made, and it will be costly. Fortunately, Aaron and Joel have created a valuable guide to help ensure your Laravel applications never go without safeguards that protect your company and user data. Highly recommended.

jgil
Jason Gilmore
Author "Easy Laravel" & CEO Treehouse

Level up your skills!

If you put in the work, we're absolutely convinced these skills will have a real impact in your day-to-day work. We offer an unconditional money back guarantee.

Buy the book go

Over 200 pages and 10 exercises - only $34.99 $24.99

PPP discount auto-applied during checkout

Who wrote this book?

Joel 'Potatoes' Clermont

Joel Clermont

Having experience in multiple disciplines and languages, Joel has become efficient at learning new technologies. He excels at helping others learn more effectively too.

Aaron Saray, Duke of New Berlin

Aaron Saray

With a career spanning public companies, startups, and contracting work, Aaron has worked on projects of all sizes. These days, he focuses on Laravel and PHP security.