Course Curriculum
1 Eloquent Model Options and Settings
make:model - Less-Known Possible Options
1:31
Singular or Plural Models? What about multiple words?
1:37
Saving a Model: $fillable or $guarded?
3:24
Model Properties: Tables, Keys, Increments, Pages and Dates
3:47
Customize Model Default Template with Stubs
1:59
Model casts(): Dates, Enum and More
2:47
2 Creating and Updating Eloquent Records
FirstOrCreate, and Other 2-in-1 Methods
4:35
WasCreated, IsDirty and Other Checks If Model Was Changed
2:51
Model Observers and Their Methods
3:19
Prunable and MassPrunable — Cleaning Up Old Records
3 min read
Attributes: Accessors and Mutators
5:29
touch() Method To Work With updated_at
1:03
Model API Docs and 3 More Random Methods
1:26
3 Querying & Filtering
find(), all(), first() and Their Extra Options
2:30
whereDate() and other whereX Methods
1:04
Brackets Between "and" / "or" Conditions
3:04
Local and Global Scopes for Repeating Conditions
4:29
Instead of Multiple If-Else, Use Eloquent When()
1:44
SubQueries and SubSelects: One Step Towards Raw SQL
1:38
What is N+1 Query: Typical Example, Debugbar and Eager Loading
2:39
Eager Loading with load() and $with
1:54
Query Result Caching
2:02
Faster Seeds with Insert and Chunk
2:34
4 Performance & Optimization
Raw Queries as a Last Resort
1:50
N+1 Query: "Deeper" Examples - Packages and Count
3:42
Detect and Prevent N+1 Query
3:16
Collections: filter(), map() or DB Query?
2:10
API Return: Kilobytes Optimization
2:59
$hidden, $visible, $appends — Model Serialization
3 min read
Eloquent vs Query Builder: whereHas vs join() vs Raw SQL
2:18
5 Advanced Eloquent Relations
Polymorphic Relations: Explained with Example
3:37
Advanced Polymorphic: Many-to-Many
1:45
Advanced BelongsToMany with Extra Pivot Table Features
1:51
HasManyThrough: 2-Level Deep hasMany
1:38
Use withCount When Just Counting
1:37
One Record from Many Records
1:52
Methods to Query Relationship Data
2:21
