Query Scope Tag

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