Autoplay
Autocomplete
Previous Lesson
Complete and Continue
NEW! Laravel Eloquent: The Expert Level
Eloquent Model Options and Settings
php artisan make:model - Less-Known Possible Options (4:04)
Singular or Plural? What about multiple words? (3:17)
Saving a Model: $fillable or $guarded? (3:50)
Model Properties: Tables, Keys, Increments, Pages and Dates (4:10)
New in Laravel 9.21: php artisan model:show (1:20)
Customize Model Default Template with Stubs (1:37)
Model $casts: Dates, Enum and More (3:44)
Creating and Updating Eloquent Records
FirstOrCreate, and Other 2-in-1 Methods (4:02)
WasCreated, IsDirty and Other Checks If Model Was Changed (2:57)
Model Observers and Their Methods (3:43)
Attributes: Accessors and Mutators with New/Old Syntax (7:00)
touch() Method To Work With updated_at (3:47)
API Docs and 3 More Random Methods (2:09)
Querying and Filtering Data Effectively
find(), all(), first() and Their Extra Options (2:59)
whereDate() and other whereX Methods (3:17)
Brackets Between "and" / "or" Conditions (2:52)
Local and Global Scopes for Repeating Conditions (4:15)
Instead of Multiple If-Else, Use When() (2:13)
Raw Queries as a Last Resort (2:14)
Advanced Eloquent Relations
Polymorphic Relations: Explained with Example (6:34)
Advanced Polymorphic: Many-to-Many (2:40)
Advanced BelongsToMany with Extra Pivot Table Features (4:35)
HasManyThrough: 2-Level Deep hasMany (1:45)
Methods to Query Relationship Data (3:41)
Use withCount When Just Counting (2:01)
New Since Laravel 8.x: LatestOfMany (2:10)
Useful Packages to Extend Eloquent
spatie/laravel-query-builder and Alternative Eloquent Filter (6:07)
Spatie Laravel Searchable and Cross Eloquent Search (5:25)
HasManyDeep and Other "Extra" Relations (4:36)
Parental by Tighten: Relationship to Self (4:27)
Cascade Soft Deletes: Soft-Delete Children Automatically (1:59)
More Packages You Can Explore (3:46)
spatie/laravel-query-builder and Alternative Eloquent Filter
Lesson content locked
If you're already enrolled,
you'll need to login
.
Enroll in Course to Unlock