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/659/44f701e1dc43e64d0b7ecc984d0b34bc.png)](https://msaied.com/articles/custom-eloquent-casts-value-objects-enums-and-encrypted-composites)12 Sep 2026·3 min read 

### [Custom Eloquent Casts: Value Objects, Enums, and Encrypted Composites](https://msaied.com/articles/custom-eloquent-casts-value-objects-enums-and-encrypted-composites) 

 Go beyond primitive storage with Eloquent's CastsAttributes contract. Build reusable value-object casts, handle composite columns, and encrypt sensitive fields without a single accessor.

   [![](https://cdn.msaied.com/656/01M27ZF9VSQC7BQC96HV2KABSD.png)](https://msaied.com/articles/referenceable-generate-clean-and-customizable-reference-numbers-in-laravel)11 Sep 2026·8 min read 

### [Referenceable: Generate Clean and Customizable Reference Numbers in Laravel](https://msaied.com/articles/referenceable-generate-clean-and-customizable-reference-numbers-in-laravel) 

 Referenceable is an open-source Laravel package for generating clean, customizable reference numbers for Eloquent models using random, sequential, or template-based strategies, with support for sequence resets, multi-tenancy, validation, and collision handling.

 [Laravel](https://msaied.com/articles?category=laravel) [Open Source](https://msaied.com/articles?category=open-source) [Composer Pacakge](https://msaied.com/articles?category=composer-pacakge) [PHP](https://msaied.com/articles?category=php) 

   [![](https://cdn.msaied.com/645/3bcda55cd0d9e4e9b4be38c9b3d11ea4.png)](https://msaied.com/articles/chunked-iteration-lazy-collections-and-cursor-pagination-at-scale-in-laravel)8 Sep 2026·4 min read 

### [Chunked Iteration, Lazy Collections, and Cursor Pagination at Scale in Laravel](https://msaied.com/articles/chunked-iteration-lazy-collections-and-cursor-pagination-at-scale-in-laravel) 

 Processing millions of Eloquent rows without exhausting memory requires the right tool for the job. Learn when to reach for chunk(), lazy(), lazyById(), and cursor pagination — and the subtle traps each one hides.

   [![](https://cdn.msaied.com/643/656efe6f0c30b559bcdb27456edcc366.png)](https://msaied.com/articles/postgresql-jsonb-in-laravel-indexing-querying-and-casting-without-the-pain-2)8 Sep 2026·3 min read 

### [PostgreSQL JSONB in Laravel: Indexing, Querying, and Casting Without the Pain](https://msaied.com/articles/postgresql-jsonb-in-laravel-indexing-querying-and-casting-without-the-pain-2) 

 JSONB columns unlock flexible schemas inside PostgreSQL, but misused they become slow blobs. Learn how to index, query, and cast JSONB correctly in Laravel Eloquent without sacrificing type safety.

   [![](https://cdn.msaied.com/636/87a71d1826f8c6cce958da8377a0bdb9.png)](https://msaied.com/articles/eloquent-n1-elimination-eager-loading-strategies-and-query-deduplication-at-scale)6 Sep 2026·4 min read 

### [Eloquent N+1 Elimination: Eager Loading Strategies and Query Deduplication at Scale](https://msaied.com/articles/eloquent-n1-elimination-eager-loading-strategies-and-query-deduplication-at-scale) 

 N+1 queries silently destroy Laravel app performance. This guide covers eager loading strategies, query deduplication with load-once guards, and Eloquent relationship tricks that matter at production scale.

   [![](https://cdn.msaied.com/634/13a8abbaba187864d69a5790a448ed46.png)](https://msaied.com/articles/filament-v3-infolist-entries-building-rich-read-only-detail-pages-without-blade-sprawl)5 Sep 2026·3 min read 

### [Filament v3 Infolist Entries: Building Rich Read-Only Detail Pages Without Blade Sprawl](https://msaied.com/articles/filament-v3-infolist-entries-building-rich-read-only-detail-pages-without-blade-sprawl) 

 Filament's Infolist API lets you compose structured, read-only detail views entirely in PHP. Learn how to build custom entries, nest repeatable sections, and wire conditional visibility to Eloquent state.

   [![](https://cdn.msaied.com/621/b0c176a363378658e83bb44ed379879b.png)](https://msaied.com/articles/laravel-macro-free-extensibility-extending-eloquent-builder-with-custom-query-objects)2 Sep 2026·1 min read 

### [Laravel Macro-Free Extensibility: Extending Eloquent Builder with Custom Query Objects](https://msaied.com/articles/laravel-macro-free-extensibility-extending-eloquent-builder-with-custom-query-objects) 

 Skip global macros and reach for typed, testable query objects that encapsulate reusable Eloquent constraints — keeping your Builder clean and your domain logic explicit.

   [![](https://cdn.msaied.com/618/d246f1cbcb9f9cd71afa1415b2329b51.png)](https://msaied.com/articles/compoships-eloquent-relationships-on-multiple-columns-in-laravel)1 Sep 2026·3 min read 

### [Compoships: Eloquent Relationships on Multiple Columns in Laravel](https://msaied.com/articles/compoships-eloquent-relationships-on-multiple-columns-in-laravel) 

 Compoships lets you define Eloquent relationships, composite primary keys, and queue-safe collections across multiple columns — solving the eager-loading pitfall that breaks plain where() workarounds.

 [Laravel](https://msaied.com/articles?category=laravel) [Composer Pacakge](https://msaied.com/articles?category=composer-pacakge) 

   [![](https://cdn.msaied.com/610/ed0ccf7bb832d7b82f057cb14f506e65.png)](https://msaied.com/articles/cqrs-without-event-sourcing-practical-readwrite-model-separation-in-laravel)30 Aug 2026·4 min read 

### [CQRS Without Event Sourcing: Practical Read/Write Model Separation in Laravel](https://msaied.com/articles/cqrs-without-event-sourcing-practical-readwrite-model-separation-in-laravel) 

 You don't need event sourcing to benefit from CQRS. This article shows how to split read and write models in a Laravel app using plain Eloquent, query objects, and command handlers — no extra infrastructure required.

   [← Newer](https://msaied.com/articles?search=eloquent&page=2)1. [1](https://msaied.com/articles?search=eloquent&page=1)
2. [2](https://msaied.com/articles?search=eloquent&page=2)
3. 3
4. [4](https://msaied.com/articles?search=eloquent&page=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)

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

  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)
