Back to the Learning

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.

Graduating Inspection Methods to Classes

Episode 50 Run Time 8:52

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.

Publish Date: June 8, 2017