20+ Best Laravel Eloquent Packages

Tutorial last revisioned on March 29, 2024 with Laravel 11

Eloquent is a great feature of Laravel, but also great is the list of packages that add more features on top of the framework. Let's explore them, in this article!

The title says 20 packages, but there are quite a few alternatives mentioned along the way, so the actual number is even bigger than this. Ready? Let's jump in!

1. spatie/laravel-query-builder

GitHub: https://github.com/spatie/laravel-query-builder

This package allows you to filter, sort and include eloquent relations based on a request.

Your users may type something like:

  • /users?filter[name]=John
  • users?include=posts
  • users?sort=id

Then, your Controller will filter the records based on those parameters.

Code example:...

The full tutorial [15 mins, 2807 words] is only for Premium Members

Login Or Become a Premium Member for $129/year or $29/month
What else you will get:
  • 59 courses (1057 lessons, total 42 h 44 min)
  • 79 long-form tutorials (one new every week)
  • access to project repositories
  • access to private Discord

Recent Premium Tutorials