---
title: "Discussion on \"Query with Quality - [Local Query Scope and Global Query Scope]\" | Hashnode"
description: "Discussion on \"Query with Quality - [Local Query Scope and Global Query Scope]\". Global Query Scope :\nlet's we have a common query for user , post , comment etc model , like view newest data first . now we writing query with sorting function to get newest data first. Global query scope in laravel provide e common place where we w..."
url: "https://hashnode.com/posts/query-with-quality-local-query-scope-and-global-query-scope/6675895341fb878825a3cc3a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Query with Quality - \[Local Query Scope and Global Query Scope\]](https://php-basics-revisions.hashnode.dev/query-with-quality-local-query-scope-and-global-query-scope?utm_source=hashnode&utm_medium=feed)

Global Query Scope : let's we have a common query for user , post , comment etc model , like view newest data first . now we writing query with sorting function to get newest data first. Global query scope in laravel provide e common place where we w...

Jun 21, 2024 · 2 min read · php-basics-revisions.hashnode.dev  
Read the article

## Written by

[mhdy hasan](https://hashnode.com/@Mhdy17)

@Mhdy17

  
[View profile](https://hashnode.com/@Mhdy17)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
