Skip to main content

Search Results for "eloquent"

We found 32 results for "eloquent".

Haven't found what you're looking for?

Our team is here to help. Ask us anything about Laravel development and we'll get back to you with personalized guidance.

Ask for Personal Help

We'll respond within 24 hours

Function available only for premium members.

Be as specific as possible so we can provide the best guidance.

Tutorial 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 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 3560 stars

JosephSilber/bouncer

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

Package 6050 stars

spatie/laravel-medialibrary

This package can associate all sorts of files with Eloquent models

Package 4348 stars

spatie/laravel-query-builder

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

Tutorial 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 2976 stars

calebporzio/sushi

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

Package 1454 stars

calebporzio/parental

Brings STI (Single Table Inheritance) capabilities to Eloquent.

Package 3980 stars

cviebrock/eloquent-sluggable

Easy creation of slugs for your Eloquent models in Laravel.

Package 1505 stars

spatie/laravel-sluggable

Generate slugs when saving Eloquent models

Package 2835 stars

staudenmeir/eloquent-has-many-deep

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

Package 1366 stars

spatie/laravel-searchable

Pragmatically search through models and other sources

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.