Tutorials for eloquent
-
Course: Laravel 12 Eloquent: Expert Level
The no.1 topic of Laravel-related questions I get is about Eloquent. How to query X? What's the bes...
-
· Updated Jun 2025 · 14 min read · premium
Optimizing Laravel Eloquent and DB Speed: All You Need to Know
-
September 21, 2021 · 7:58 mins
Video: Eloquent Performance: TOP 3 Mistakes Developers Make
-
May 21, 2025 · 12:04 mins
Video: Eloquent N+1 Query: All You Need to Know
-
· Updated Mar 2024 · 15 min read · premium
20+ Best Laravel Eloquent Packages
-
· 6 min read
How to Clone Eloquent Model: Create or Replicate
-
· Updated Jul 2023 · 5 min read
Eloquent: Recursive hasMany Relationship with Unlimited Subcategories
-
October 13, 2021 · 10:56 mins
Video: Eloquent Soft Deletes: Things You May Not Know
-
July 31, 2024 · 7:40 mins
Video: Laravel DB: Query BelongsTo 2-Levels Up - Direct Column?
-
August 29, 2025 · 6:36 mins
Video: Eloquent: Two HUGE Performance Mistakes
-
Tip: Add where statement to Many-to-Many relation
-
Package: JosephSilber/bouncer
Elegant, framework-agnostic approach to managing roles and abilities for any app using Eloquent models
-
Package: spatie/laravel-medialibrary
This package can associate all sorts of files with Eloquent models
-
Package: spatie/laravel-query-builder
Filter, sort and include eloquent relations based on a request.
-
July 30, 2020 · 6:30 mins
Video: What SQL Queries Are "Under" Eloquent?
-
February 02, 2021 · 5:47 mins
Video: Eloquent or Query Builder: When to Use Which?
-
November 14, 2021 · 5:31 mins
Video: Improve Controller: Shorter Eloquent with When()
-
April 17, 2020 · 5:31 mins
Video: Laravel Queries: Group AND-OR Conditions to Avoid Errors
-
June 09, 2022 · 4:58 mins
Video: Laravel - Split Users DB Table: Why It's (Not) Bad?
-
· Updated Aug 2022 · 2 min read
AND-OR-AND + brackets with Eloquent
-
· 2 min read
Eloquent create() VS Query Builder insert() Method
-
· Updated Jun 2025 · 2 min read
Eloquent::when(): No More if-elses for Conditional Queries
-
· 2 min read
Eloquent hasManyThrough: jumping deeper into relationships
-
· Updated Aug 2022 · 2 min read
Eloquent date filtering: whereDate() and other methods
-
· 1 min read
Eloquent: Get the Latest Row from Relationship
-
Package: calebporzio/sushi
Eloquent's missing "array" driver. Sometimes you want to use Eloquent, but without dealing with a database.
-
Package: calebporzio/parental
Brings STI (Single Table Inheritance) capabilities to Eloquent.
-
Package: cviebrock/eloquent-sluggable
Easy creation of slugs for your Eloquent models in Laravel.
-
Package: spatie/laravel-sluggable
Generate slugs when saving Eloquent models
-
Package: staudenmeir/eloquent-has-many-deep
This extended version of HasManyThrough allows relationships with unlimited intermediate models.
-
Package: spatie/eloquent-sortable
Sortable behaviour for Eloquent models
-
Package: spatie/laravel-searchable
Pragmatically search through models and other sources