Eloquent ORM Deep Dive

Mastering Laravel Eloquent ORM: Novice to Expert Guide

Master Eloquent ORM from basics to advanced: queries, scopes, events, every relationship type, casts, serialization and factories.

Mastering Laravel Eloquent ORM: Novice to Expert Guide

Who this course is for

  • Laravel developers looking to enhance their database interaction skills
  • Laravel Developers seeking to deepen their understanding of Laravel Eloquent ORM
  • Those wanting to master advanced ORM techniques and best practices
  • Professionals looking to stand out as Laravel experts in the industry
  • Anyone eager to elevate their Laravel development skills to new heights

What you'll learn

  • Understanding the key concepts of mapping and how to effectively map database tables to models
  • Exploring various eloquent aspects through technical comparisons for a deeper understanding
  • Discovering collection chaining behaviors and how to optimize your data retrieval process
  • Working with non-relational factories and mastering their usage in Laravel applications with data seeding
  • Exploring factory options such as states, callbacks, sequences, and more for efficient data seeding
  • Leveraging factories discovery conventions and alternative running methods for streamlined development
  • Diving into model options and customizations, and mastering their use in your projects
  • Working with UUID & ULID and exploring all available options for unique identifier generation
  • Mastering model operations including inserting, updating, and retrieval techniques with advanced options
  • Implementing aggregate operations and retrieval constraints for precise data manipulation
  • Performing ordering, grouping, and limiting operations on models with ease
  • Learn how to use soft delete with all its available options
  • Mastering model pruning and replicating operations with all options available
  • Mastering query scopes with all its types and options available
  • Learn how to work with different model events including model observers
  • Exploring model relationships and mastering different types and options available
  • Understanding advanced concepts like chunking, subqueries, and lazy collections for optimized data handling
  • Implementing one-to-one, one-to-many, many-to-many relationships with practical examples
  • Implementing has one of many, has one through and has many through relationships with practical examples
  • Working with pivot tables and mastering relationship operations such as associating, attaching, syncing, and more
  • Implementing polymorphic relationships with practical examples
  • Understanding model accessors, mutators, and casting to manipulate data effectively
  • Utilizing data serialization techniques for transforming data formats
  • Leveraging factories with relationships and exploring all available options for efficient data seeding

Topics covered

An overview of the main modules. See the course page on Udemy for the full, up-to-date curriculum.

1

Introduction

2

Key concepts & comparisons

3

Non-relational factories

4

Model Options

5

Model Operations - Inserting & updating

6

Before continue with operation

7

Model Operations - Basic Retrieval

8

Model Operations - Aggregates

9

Model Operations - Retrieval with constraints

10

Model Operations - Ordering, Grouping and Limiting

11

Model Operations - Relational Retrieving

12

Model Operations - Advanced Concepts

13

Model Operations - Deleting, Pruning and Replicating

14

Model Operations - Query Scopes

15

Model Operations - Model Events

16

Eloquent Relationships - Overview

17

Eloquent Relationships - One to Relations

18

Eloquent Relationships - Many to Many

19

Eloquent Relationships - Polymorphic

20

Eloquent Relationships - Operations

21

Accessors, Mutators, Castng and Serialization

22

Relational factories

23

Finalizing the course

Prerequisites

  • Basic understanding of Laravel is required
  • Basic understanding of models, seeders, migrations and basic CRUD operations is required
  • Any computer and OS will work — Windows, macOS or Linux

Your instructor

Mahmoud Anwar

Mahmoud Anwar

Senior Laravel/PHP developer and technical educator specializing in backend engineering, with 21+ programming courses created for developers worldwide.

More about Mahmoud
Keep going
Next step

Have a technical challenge?

Tell me about your application, your goals and your constraints. We'll work out the right next step together.