MHmhdy hasaninphp-basics-revisions.hashnode.dev·Aug 11, 2024 · 2 min readDesign-PatternsDecorator 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...00
MHmhdy hasaninphp-basics-revisions.hashnode.dev·Jun 21, 2024 · 2 min readQuery with Quality - [Local Query Scope and Global Query Scope]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...00
MHmhdy hasaninphp-basics-revisions.hashnode.dev·Jun 21, 2024 · 1 min readAuthorization, Policies, Gates in Laravelcoming soon.00
MHmhdy hasaninphp-basics-revisions.hashnode.dev·Jun 19, 2024 · 1 min readEager Loading And Lazy LoadingEager 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...00
MHmhdy hasaninphp-basics-revisions.hashnode.dev·Jun 14, 2024 · 1 min readLaravel Crud best practices points should be maintained.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...00