Articles | Mohamed Said      [Skip to content](#main)  [ ![](https://cdn.msaied.com/01KT78WE565VEMM3PSNQAAB0MH.png) Mohamed SaidLaravel Backend Engineer ](https://msaied.com) - [Home](https://msaied.com)
- [Projects](https://msaied.com/projects)
- [Articles](https://msaied.com/articles)
- [Certificates](https://msaied.com/certificates)
- [About](https://msaied.com#about)

           [  Contact](https://msaied.com#contact) Menu 

Menu
----

Close 

 - [HomeStart here](https://msaied.com)
- [ProjectsCase studies](https://msaied.com/projects)
- [ArticlesEngineering notes](https://msaied.com/articles)
- [CertificatesCredentials](https://msaied.com/certificates)
- [AboutHow I work](https://msaied.com#about)
- [ContactGet in touch](https://msaied.com#contact)

  [Start a conversation](https://msaied.com#contact) [WhatsApp](https://wa.me/201094619204) [Email](mailto:hello@msaied.com) 

  1. [Home](https://msaied.com)
2. /
3. Articles

  Engineering library
====================

 100 articles by Mohamed Said on Laravel, PHP, databases, APIs and infrastructure, written from production work.

 Search articles ⌕×Search 

    Topic hubs
----------

←→

- [AI53 articles](https://msaied.com/articles?category=ai&search=eloquent&sort=new)
- [Composer Pacakge85 articles](https://msaied.com/articles?category=composer-pacakge&search=eloquent&sort=new)
- [Filament31 articles](https://msaied.com/articles?category=filament&search=eloquent&sort=new)
- [Laravel292 articles](https://msaied.com/articles?category=laravel&search=eloquent&sort=new)
- [Livewire16 articles](https://msaied.com/articles?category=livewire&search=eloquent&sort=new)
- [Open Source48 articles](https://msaied.com/articles?category=open-source&search=eloquent&sort=new)
- [PHP34 articles](https://msaied.com/articles?category=php&search=eloquent&sort=new)
- [Tips &amp; Tricks37 articles](https://msaied.com/articles?category=tips-tricks&search=eloquent&sort=new)

  Topics
------

 [All topics](https://msaied.com/articles?search=eloquent&sort=new) [AI 53](https://msaied.com/articles?category=ai&search=eloquent&sort=new) [Composer Pacakge 85](https://msaied.com/articles?category=composer-pacakge&search=eloquent&sort=new) [Filament 31](https://msaied.com/articles?category=filament&search=eloquent&sort=new) [Laravel 292](https://msaied.com/articles?category=laravel&search=eloquent&sort=new) [Livewire 16](https://msaied.com/articles?category=livewire&search=eloquent&sort=new) [Open Source 48](https://msaied.com/articles?category=open-source&search=eloquent&sort=new) [PHP 34](https://msaied.com/articles?category=php&search=eloquent&sort=new) [Tips &amp; Tricks 37](https://msaied.com/articles?category=tips-tricks&search=eloquent&sort=new)    100 articles
-------------

Topics    Sort articles Newest first  Oldest first  Sort  

 [Search: eloquent ×Remove search](https://msaied.com/articles?sort=new) [ Clear filters](https://msaied.com/articles) 

  [![](https://cdn.msaied.com/608/26a2b1fe183034ea35445954544f68f1.png)](https://msaied.com/articles/blackfire-xdebug-profiling-in-laravel-finding-real-bottlenecks-2)30 Aug 2026·3 min read 

### [Blackfire &amp; Xdebug Profiling in Laravel: Finding Real Bottlenecks](https://msaied.com/articles/blackfire-xdebug-profiling-in-laravel-finding-real-bottlenecks-2) 

 Stop guessing where your Laravel app is slow. Learn how to use Blackfire and Xdebug profiling together to pinpoint real bottlenecks in routes, jobs, and Eloquent queries with actionable precision.

   [![](https://cdn.msaied.com/607/ac508dd27011f0f2c57b0bee7707b740.png)](https://msaied.com/articles/recursive-ctes-and-hierarchical-data-in-laravel-with-postgresql)29 Aug 2026·3 min read 

### [Recursive CTEs and Hierarchical Data in Laravel with PostgreSQL](https://msaied.com/articles/recursive-ctes-and-hierarchical-data-in-laravel-with-postgresql) 

 Learn how to query trees and hierarchies—categories, org charts, threaded comments—using recursive CTEs in PostgreSQL, wired cleanly into Eloquent with raw expressions and custom scopes.

   [![](https://cdn.msaied.com/605/c67ac0ef4197be20a45afdbc4f26f670.png)](https://msaied.com/articles/pessimistic-locking-in-laravel-eloquent-with-refreshforupdate)28 Aug 2026·3 min read 

### [Pessimistic Locking in Laravel Eloquent with refreshForUpdate()](https://msaied.com/articles/pessimistic-locking-in-laravel-eloquent-with-refreshforupdate) 

 Laravel 13.27 adds refreshForUpdate() to Eloquent, letting you reload a model from the database and acquire a FOR UPDATE row lock in a single method call — no more manual query rebuilding inside transactions.

 [Laravel](https://msaied.com/articles?category=laravel) [Tips &amp; Tricks](https://msaied.com/articles?category=tips-tricks) 

   [![](https://cdn.msaied.com/591/4e5121d9bddacf2c42ce4b1b39885c68.png)](https://msaied.com/articles/livewire-v442-released-bug-fixes-resilience-improvements-and-alpine-3163)24 Aug 2026·3 min read 

### [Livewire v4.4.2 Released: Bug Fixes, Resilience Improvements, and Alpine 3.16.3](https://msaied.com/articles/livewire-v442-released-bug-fixes-resilience-improvements-and-alpine-3163) 

 Livewire v4.4.2 ships 18 pull requests covering exception hooks for computed properties, Eloquent cast fallbacks, failed-response recovery, lazy-load deduplication, MIME detection for uploads, and Alpine 3.16.3.

 [Laravel](https://msaied.com/articles?category=laravel) [Livewire](https://msaied.com/articles?category=livewire) 

   [![](https://cdn.msaied.com/583/7301900aac0f2ec5d1347df11ce92188.png)](https://msaied.com/articles/typed-php-83-enums-as-eloquent-casts-route-parameters-and-validation-rules)23 Aug 2026·1 min read 

### [Typed PHP 8.3 Enums as Eloquent Casts, Route Parameters, and Validation Rules](https://msaied.com/articles/typed-php-83-enums-as-eloquent-casts-route-parameters-and-validation-rules) 

 Go beyond basic enum casting. Learn how to wire PHP 8.3 backed enums into Eloquent, route model binding, and custom validation rules to eliminate stringly-typed code across your Laravel application.

   [![](https://cdn.msaied.com/564/c64b65959ad8ade491c78f3482f22996.png)](https://msaied.com/articles/livewire-v441-released-bug-fixes-alpine-3162-and-laravel-13-compatibility)18 Aug 2026·3 min read 

### [Livewire v4.4.1 Released: Bug Fixes, Alpine 3.16.2, and Laravel 13 Compatibility](https://msaied.com/articles/livewire-v441-released-bug-fixes-alpine-3162-and-laravel-13-compatibility) 

 Livewire v4.4.1 ships 16 fixes and improvements including Alpine.js bumped to 3.16.2, cached computed property fixes for Laravel 13, nullable enum handling, and better reactive Eloquent model support.

 [Laravel](https://msaied.com/articles?category=laravel) [Livewire](https://msaied.com/articles?category=livewire) 

   [![](https://cdn.msaied.com/552/a7825c0c6f53d934f84fce522573eafb.png)](https://msaied.com/articles/contextual-eloquent-casts-custom-cast-classes-value-objects-and-inbound-only-transforms)15 Aug 2026·1 min read 

### [Contextual Eloquent Casts: Custom Cast Classes, Value Objects, and Inbound-Only Transforms](https://msaied.com/articles/contextual-eloquent-casts-custom-cast-classes-value-objects-and-inbound-only-transforms) 

 Go beyond primitive casts. Learn how to build custom Eloquent cast classes that hydrate value objects, handle inbound-only transforms, and stay testable without bloating your models.

   [![](https://cdn.msaied.com/551/dc00bc1e6fb2999c99a0b5b8fb42a8c3.png)](https://msaied.com/articles/contextual-eloquent-scopes-binding-query-logic-to-domain-state-at-runtime)15 Aug 2026·3 min read 

### [Contextual Eloquent Scopes: Binding Query Logic to Domain State at Runtime](https://msaied.com/articles/contextual-eloquent-scopes-binding-query-logic-to-domain-state-at-runtime) 

 Learn how to attach runtime-aware query scopes to Eloquent models using the service container, avoiding scattered conditionals and keeping domain rules close to the data layer.

   [![](https://cdn.msaied.com/549/9eafcdbde2cf4401308fb8644ae9a3ab.png)](https://msaied.com/articles/contextual-dtos-and-value-objects-in-laravel-without-the-bloat)14 Aug 2026·1 min read 

### [Contextual DTOs and Value Objects in Laravel Without the Bloat](https://msaied.com/articles/contextual-dtos-and-value-objects-in-laravel-without-the-bloat) 

 Learn how to design lean DTOs and value objects in Laravel using PHP 8.3 readonly classes, custom Eloquent casts, and factory helpers — without pulling in a heavy DDD framework.

   [← Newer](https://msaied.com/articles?search=eloquent&page=3)1. [1](https://msaied.com/articles?search=eloquent&page=1)
2. [2](https://msaied.com/articles?search=eloquent&page=2)
3. [3](https://msaied.com/articles?search=eloquent&page=3)
4. 4
5. [5](https://msaied.com/articles?search=eloquent&page=5)
6. [6](https://msaied.com/articles?search=eloquent&page=6)
7. [7](https://msaied.com/articles?search=eloquent&page=7)
8. [8](https://msaied.com/articles?search=eloquent&page=8)
9. [9](https://msaied.com/articles?search=eloquent&page=9)
10. [10](https://msaied.com/articles?search=eloquent&page=10)
11. [11](https://msaied.com/articles?search=eloquent&page=11)
12. [12](https://msaied.com/articles?search=eloquent&page=12)

 4 / 12 [Older →](https://msaied.com/articles?search=eloquent&page=5)   

  Have a technical challenge?
----------------------------

Tell me what you’re building. I reply within two working days.

 [Discuss your project ↗](https://msaied.com#contact) 

Topics
------

Close 

 [All topics](https://msaied.com/articles) [AI (53) ](https://msaied.com/articles?category=ai&search=eloquent&sort=new) [Composer Pacakge (85) ](https://msaied.com/articles?category=composer-pacakge&search=eloquent&sort=new) [Filament (31) ](https://msaied.com/articles?category=filament&search=eloquent&sort=new) [Laravel (292) ](https://msaied.com/articles?category=laravel&search=eloquent&sort=new) [Livewire (16) ](https://msaied.com/articles?category=livewire&search=eloquent&sort=new) [Open Source (48) ](https://msaied.com/articles?category=open-source&search=eloquent&sort=new) [PHP (34) ](https://msaied.com/articles?category=php&search=eloquent&sort=new) [Tips &amp; Tricks (37) ](https://msaied.com/articles?category=tips-tricks&search=eloquent&sort=new)  

  © 2026 Mohamed Said · Built with Laravel, meant to last.Senior Backend Engineer specializing in Laravel, scalable SaaS platforms, APIs, and cloud infrastructure. I build secure, high-performance web applications that help businesses grow.

 - [Home](https://msaied.com)
- [Articles](https://msaied.com/articles)
- [Certificates](https://msaied.com/certificates)
- [GitHub](https://github.com/EG-Mohamed)
- [LinkedIn](https://www.linkedin.com/in/msaiedm/)
- [WhatsApp](https://wa.me/201094619204)
- [Email Address](mailto:hello@msaied.com)
- [My CV](https://drive.google.com/file/u/0/d/1MF20IPRJyzfy32mhEutjL5EpSls0w2Q8/view)
- [Sitemap](https://msaied.com/sitemap.xml)
