Skip to main content

Search Results for "eloquent"

We found 32 results for "eloquent".

Tutorial 15 min read Premium

20+ Best Laravel Eloquent Packages

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!

Tutorial 6 min read Free

How to Clone Eloquent Model: Create or Replicate

Sometimes, you may need to make a copy of an Eloquent Model object to clone it. For example, you have similar products; the only difference is the specific options inside. I will show you two ways.

Package 3556 stars Last updated November 2025

JosephSilber/bouncer

Elegant, framework-agnostic approach to managing roles and abilities for any app using Eloquent models

Package 6042 stars Last updated November 2025

spatie/laravel-medialibrary

This package can associate all sorts of files with Eloquent models

Package 4336 stars Last updated November 2025

spatie/laravel-query-builder

Filter, sort and include eloquent relations based on a request.

Video 4:58 mins Free

Laravel - Split Users DB Table: Why It's (Not) Bad?

I often hear an argument that there can be too many fields in the "users" DB table, so it's worth splitting it into two tables with the relationship. Let's take a look at one example, and I will share my thoughts.

Tutorial 2 min read Free

AND-OR-AND + brackets with Eloquent

Eloquent is a great thing - you can build your query step-by-step and then call get() method. But sometimes it gets a little tricky for more complicated queries - for example, if you have multiple AND-OR conditions and you want to put brackets, how to do it properly?

Package 2974 stars Last updated November 2025

calebporzio/sushi

Eloquent's missing "array" driver. Sometimes you want to use Eloquent, but without dealing with a database.

Package 1453 stars Last updated November 2025

calebporzio/parental

Brings STI (Single Table Inheritance) capabilities to Eloquent.

Package 3979 stars Last updated November 2025

cviebrock/eloquent-sluggable

Easy creation of slugs for your Eloquent models in Laravel.

Package 1501 stars Last updated November 2025

spatie/laravel-sluggable

Generate slugs when saving Eloquent models

Package 2827 stars Last updated November 2025

staudenmeir/eloquent-has-many-deep

This extended version of HasManyThrough allows relationships with unlimited intermediate models.

Package 1362 stars Last updated November 2025

spatie/laravel-searchable

Pragmatically search through models and other sources