Overview
The no.1 topic of Laravel-related questions I get is about Eloquent.
- How to query X?
- What's the best structure of a relationship?
- How to customize X in Models?
- etc.
So, in this 2-hour course, you will find many answers to these and other questions.
Also, you'll discover a lot of Eloquent "hidden gems" that you didn't know before, to perform some database operations in a shorter way.
We'll talk about Model structure, creating/selecting records, advanced relationships, and more.
So, do you want to get to the next level in your Eloquent knowledge? Join me inside the course!
Episodes
-
Model Properties: Tables, Keys, Increments, Pages and .....
04:10
-
New in Laravel 9.21: php artisan model:show
01:19
-
Customize Model Default Template with Stubs
01:37
-
Model $casts: Dates, Enum and More
03:44
-
FirstOrCreate, and Other 2-in-1 Methods
04:02
-
WasCreated, IsDirty and Other Checks If Model Was Cha.....
02:57
-
Model Observers and Their Methods
03:43
-
Attributes: Accessors and Mutators with New/Old Syntax
07:00
-
touch() Method To Work With updated_at
03:47
-
Model API Docs and 3 More Random Methods
02:09
-
find(), all(), first() and Their Extra Options
02:59
-
whereDate() and other whereX Methods
03:17
-
Brackets Between "and" / "or" Conditions
02:52
-
Local and Global Scopes for Repeating Conditions
03:55
-
Instead of Multiple If-Else, Use Eloquent When()
02:13
-
Raw Queries as a Last Resort
02:14
-
Polymorphic Relations: Explained with Example
06:34
-
Advanced Polymorphic: Many-to-Many
02:40
-
Advanced BelongsToMany with Extra Pivot Table Featur....
04:35
-
HasManyThrough: 2-Level Deep hasMany
01:45
-
Methods to Query Relationship Data
03:41
-
Use withCount When Just Counting
02:00
-
New Since Laravel 8.x: LatestOfMany
02:10
-
Spatie Query Builder and Alternative Eloquent Filter
06:07
-
Spatie Laravel Searchable and Cross Eloquent Search
05:25
-
HasManyDeep and Other "Extra" Relations
04:36
-
Parental by Tighten: Relationship to Self
04:07
-
Cascade Soft Deletes: Soft-Delete Children Automatic....
01:59
-
More Eloquent Packages You Can Explore
03:46
Eloquent Model Options and Settings
Creating and Updating Eloquent Records
Querying and Filtering Data Effectively
Advanced Eloquent Relations
Useful Packages to Extend Eloquent
Reviews
No review yet.
Author
Povilas Korop
I've been creating PHP web-projects since 2001, last 5 years - with Laravel framework. Grew my freelance consultancy into a small team we call Laravel Daily.
Lately became more obsessed with customer success and business part of web, so practicing project management and entrepreneurship. Released our own product called QuickAdminPanel - code generator for the same Laravel framework.