Buy your loved one the ultimate gift. Lifetime gift certificates are $100 off.

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 Jun. 8th 2017

Let's Build A Forum with Laravel and TDD: Graduating Inspection Methods to Classes

Episode 50 Run Time 8:52

Download

Rather than adding countless inspections to our single Spam class, instead, let's elevate each of these inspections to its own class. Then, our Spam class can simply filter through all registered inspections, and trigger them. Much cleaner!

View the source code for this episode on GitHub.