Return to homepage

Custom Laravel Query Builders

4 episodes
23 mins

About this course

Using Eloquent query scopes in your project? Consider swapping them out for custom query builders. Custom query builders are model-specific, class-based builders that provide better organisation, IDE autocompletion, and more.

We'll start this course by defining some standard scopes, refactor them, and discuss the benefits of custom builders.

This course is for you if:

  • You're using query scopes, but they're bloating your models
  • You're working in a team and need more organisation in your project
  • You haven't used query scopes and want a primer, plus an alternative

Your teacher

Alex Garrett-Smith
Alex Garrett-Smith

Hey, I'm the founder of Codecourse and a full-stack developer of over 10 years.

Want to stay in the loop about new content?
Of course you do.

© 2022 Codecourse Ltd. All Rights Reserved. Born in the UK.