---
title: "mhdy hasan (@Mhdy17) | Hashnode"
description: "mhdy hasan (@Mhdy17) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@Mhdy17"
---

@Mhdy17

# mhdy hasan

@Mhdy17 · Joined October 2022

### [Design-Patterns](https://php-basics-revisions.hashnode.dev/design-patterns?utm_source=hashnode&utm_medium=feed)

Decorator Pattern: suppose you want to have burgers with your friends The burger cost you $4 //initial price with initial burger structure or basic price basic burger structure but you want to add some extra things like , cheese , sauce , meat etc he...

2 min read · [php-basics-revisions.hashnode.dev](https://php-basics-revisions.hashnode.dev/design-patterns?utm_source=hashnode&utm_medium=feed)

[Aug 11, 2024](https://hashnode.com/posts/design-patterns/66b8a75a72f077cd98f5b275)

### [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...

2 min read · [php-basics-revisions.hashnode.dev](https://php-basics-revisions.hashnode.dev/query-with-quality-local-query-scope-and-global-query-scope?utm_source=hashnode&utm_medium=feed)

[Jun 21, 2024](https://hashnode.com/posts/query-with-quality-local-query-scope-and-global-query-scope/6675895341fb878825a3cc3a)

### [Authorization, Policies, Gates in Laravel](https://php-basics-revisions.hashnode.dev/authorization-policies-gates-in-laravel?utm_source=hashnode&utm_medium=feed)

coming soon.

1 min read · [php-basics-revisions.hashnode.dev](https://php-basics-revisions.hashnode.dev/authorization-policies-gates-in-laravel?utm_source=hashnode&utm_medium=feed)

[Jun 21, 2024](https://hashnode.com/posts/authorization-policies-gates-in-laravel/66751d33c77e77544443e44b)

### [Eager Loading And Lazy Loading](https://php-basics-revisions.hashnode.dev/eager-loading-and-lazy-loading?utm_source=hashnode&utm_medium=feed)

Eager Loading : Eager loading helps you to load all your entities at once. The related objects\[child objects\] will loaded automatically with parent objects. when to use eager loading user eager loading when the relations are not too much .Eager loadi...

1 min read · [php-basics-revisions.hashnode.dev](https://php-basics-revisions.hashnode.dev/eager-loading-and-lazy-loading?utm_source=hashnode&utm_medium=feed)

[Jun 19, 2024](https://hashnode.com/posts/eager-loading-and-lazy-loading/6672b42665a04949dace771c)

### [Laravel Crud best practices points should be maintained](https://php-basics-revisions.hashnode.dev/laravel-crud-best-practices-points-should-be-maintained?utm_source=hashnode&utm_medium=feed)

.use resources .use route name to form action and anchor tag .current user data , should take from controller using Auth class .form must be validated with custom form Request .we add a Request before submit form data to database because each Request...

1 min read · [php-basics-revisions.hashnode.dev](https://php-basics-revisions.hashnode.dev/laravel-crud-best-practices-points-should-be-maintained?utm_source=hashnode&utm_medium=feed)

[Jun 14, 2024](https://hashnode.com/posts/laravel-crud-best-practices-points-should-be-maintained/666c2f013b995b7547e8baa0)
