Eloquent: The Expert Level
- 32 videos
- 01 h 57 min
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?
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!
Model Properties: Tables, Keys, Increments, Pages and .....
New in Laravel 9.21: php artisan model:show
Customize Model Default Template with Stubs
Model $casts: Dates, Enum and More
FirstOrCreate, and Other 2-in-1 Methods
WasCreated, IsDirty and Other Checks If Model Was Cha.....
Model Observers and Their Methods
Attributes: Accessors and Mutators with New/Old Syntax
touch() Method To Work With updated_at
Model API Docs and 3 More Random Methods
find(), all(), first() and Their Extra Options
whereDate() and other whereX Methods
Brackets Between "and" / "or" Conditions
Local and Global Scopes for Repeating Conditions
Instead of Multiple If-Else, Use Eloquent When()
Raw Queries as a Last Resort
Polymorphic Relations: Explained with Example
Advanced Polymorphic: Many-to-Many
Advanced BelongsToMany with Extra Pivot Table Featur....
HasManyThrough: 2-Level Deep hasMany
Methods to Query Relationship Data
Use withCount When Just Counting
New Since Laravel 8.x: LatestOfMany
Spatie Query Builder and Alternative Eloquent Filter
Spatie Laravel Searchable and Cross Eloquent Search
HasManyDeep and Other "Extra" Relations
Parental by Tighten: Relationship to Self
Cascade Soft Deletes: Soft-Delete Children Automatic....
More Eloquent Packages You Can Explore
Eloquent Model Options and Settings
Creating and Updating Eloquent Records
Querying and Filtering Data Effectively
Advanced Eloquent Relations
Useful Packages to Extend Eloquent
No review yet.
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.