Eloquent ORM Tag

Laravel with(): How to Solve the N+1 Problem with Eager Loading Relationships's featured image

Laravel with(): How to Solve the N+1 Problem with Eager Loading Relationships

Eloquent ORM makes it easier to access the database. ORM, or Object-Relational Mapping, is a programming technique for converting data between a Relational Database Management System (RDBMS) and an object-oriented programming language....

Published on
Create Global Query With Laravel Global Scope's featured image

Create Global Query With Laravel Global Scope

In backend development, sometimes we want the data to be retrieved with default query. For example, when we want to get all users data, we want our app retrieve only active users by default....

Published on
Create Reusable Query With Laravel Query Scope's featured image

Create Reusable Query With Laravel Query Scope

One of the best feature Laravel have is Laravel Eloquent ORM. Using Eloquent ORM is easy and it can makes our query simpler, cleaner than Query Builder but sometimes it can also be so long, and maybe we need to reuse the query too....

Published on