DEV Community

loading...

Discussion on: The magic of query scopes in Laravel

Collapse
bertheyman profile image
Bert Heyman Author • Edited

Hi, thanks for sharing your feedback! I'll have a look where some more context might be useful.

Actually, query scopes might not always be the right choice. They're merely a syntax that allows you to split queries into small, clean and reusable blocks. This might improve the readability and allow for easier tweaks at a later time.

If you are interested in learning the "why" and not just the "what" and miss this in the docs, Laracasts might be a great resource on your journey of learning Laravel. Good luck!