Topic: Eloquent

Browsing all Eloquent courses

Laravel
Eloquent Relationships By Example

Eloquent is Laravel's ORM (Object Relational Mapper). In simple terms, it's how your models work with the database. The good news? There's a bunch of powerful relationship types available. Our task is to learn when and where to use each one. In this course, we'll cover each basic relationship type, how to access related models, and then insert, sync, update and delete related data. Oh, and we'll build a practical example for each relationship type, to really make it stick.

4 hrs 18 mins
Laravel
The Eloquent Query Method

Ever used the Eloquent query() method in Laravel before? In this short course, we'll dive into what this method does, and demonstrate the ways it can be used.

23 mins
Laravel
Build a Friend System in Laravel

Everything you need to implement a friend system in Laravel, built in a simple UI so you can integrate it into your existing apps. We'll start with the basic friend relationships, then add in more advanced relations to make things future-proof. Want to easily get all friend's statuses on a timeline? No problem.

1 hr 16 mins
Laravel
Laravel Aggregates

If you're displaying counts in your app, instead of pulling records into a Collection to count on, try aggregates! Working at the database level, aggregates are performed in one query and lower the memory usage of your app. Let's explore everything you need to know to work effectively with aggregate data in Laravel.

32 mins