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.

Simpler Queries With Global Scopes

Episode 18 Run Time 6:12

It seems like, just about in all cases, when we fetch a collection of channels, they should exclude any archived records. What if we instead made that a global scope?

View the commit for this episode on GitHub.

Publish Date: February 1, 2018