Learning Laravel's Eloquent
This course has been retired. Check out the alternatives below
-
What do you get with a Packt Subscription?
- Instant access to this title and 7,500+ eBooks & Videos
- Constantly updated with 100+ new titles each month
- Breadth and depth in over 1,000+ technologies
-
Setting Up Our First Project
- Setting Up Our First Project
- Your Swiss Army Knife – Composer
- Your safe place – Homestead
- The new hideout: Homestead improved
- A bonus tool – Adminer
- Your best friend: Laravel
- The first project – EloquentJourney
- Summary
-
Building the Database with the Schema Builder Class
- Building the Database with the Schema Builder Class
- The Schema Builder class
- Database versioning with the migrations system
- Summary
-
The Most Important Element – the Model!
- The Most Important Element – the Model!
- Creating a Model
- Create, read, update, and delete operations basics
- where, aggregates, and other utilities
- Mass assignment... for the masses
- Timestamps and soft deletes
- Query scopes
- Attributes casting, accessors, and mutators
- Descending in the code
- Summary
-
Exploring the World of Relationships
- Exploring the World of Relationships
- The trinity – one to one, one to many, many to many
- Querying-related models
- Eager loading (and the N + 1 problem)
- Inserting and updating related models
- Accessing distant relationships
- More power – polymorphic relationships
- Summary
-
Using Collections to Enhance Results
- Using Collections to Enhance Results
- Basic collection operations
- Transforming collections
- Iterating and filtering
- Sorting
- Summary
-
Everything under Control with Events and Observers
- Everything under Control with Events and Observers
- When should I use events in my models?
- Model events
- An example of model events
- Events observers
- An example of model observers
- Summary
-
Eloquent… without Laravel!
- Eloquent… without Laravel!
- Exploring the directory structure
- Installing and configuring the database package
- Using the ORM
- Using the Query and Schema Builder
- Summary
-
It's Not Enough! Extending Eloquent, Advanced Concepts
- It's Not Enough! Extending Eloquent, Advanced Concepts
- Extending the Model: Aweloquent!
- Diving into the repository pattern
- Summary