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
====================

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

 Search articles ⌕×Search 

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

←→

- [AI48 articles](https://msaied.com/articles?category=ai&search=Eloquent&sort=new)
- [Composer Pacakge80 articles](https://msaied.com/articles?category=composer-pacakge&search=Eloquent&sort=new)
- [Filament27 articles](https://msaied.com/articles?category=filament&search=Eloquent&sort=new)
- [Laravel266 articles](https://msaied.com/articles?category=laravel&search=Eloquent&sort=new)
- [Livewire13 articles](https://msaied.com/articles?category=livewire&search=Eloquent&sort=new)
- [Open Source44 articles](https://msaied.com/articles?category=open-source&search=Eloquent&sort=new)
- [PHP27 articles](https://msaied.com/articles?category=php&search=Eloquent&sort=new)
- [Tips &amp; Tricks32 articles](https://msaied.com/articles?category=tips-tricks&search=Eloquent&sort=new)

  Topics
------

 [All topics](https://msaied.com/articles?search=Eloquent&sort=new) [AI 48](https://msaied.com/articles?category=ai&search=Eloquent&sort=new) [Composer Pacakge 80](https://msaied.com/articles?category=composer-pacakge&search=Eloquent&sort=new) [Filament 27](https://msaied.com/articles?category=filament&search=Eloquent&sort=new) [Laravel 266](https://msaied.com/articles?category=laravel&search=Eloquent&sort=new) [Livewire 13](https://msaied.com/articles?category=livewire&search=Eloquent&sort=new) [Open Source 44](https://msaied.com/articles?category=open-source&search=Eloquent&sort=new) [PHP 27](https://msaied.com/articles?category=php&search=Eloquent&sort=new) [Tips &amp; Tricks 32](https://msaied.com/articles?category=tips-tricks&search=Eloquent&sort=new)    97 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/796/13df3306c87eeeccf69b380e7a07d8da.png)](https://msaied.com/articles/eloquent-custom-casts-encrypting-compressing-and-composing-value-objects-at-the-model-layer)19 Oct 2026·3 min read 

### [Eloquent Custom Casts: Encrypting, Compressing, and Composing Value Objects at the Model Layer](https://msaied.com/articles/eloquent-custom-casts-encrypting-compressing-and-composing-value-objects-at-the-model-layer) 

 Go beyond built-in Eloquent casts. Learn to build custom CastsAttributes implementations that encrypt, compress, and hydrate rich value objects — keeping your models clean and your domain logic portable.

   [![](https://cdn.msaied.com/795/9d9dd20c259ecc6356a91021a872695c.png)](https://msaied.com/articles/eloquent-query-optimization-defeating-n1-problems-at-the-source)18 Oct 2026·3 min read 

### [Eloquent Query Optimization: Defeating N+1 Problems at the Source](https://msaied.com/articles/eloquent-query-optimization-defeating-n1-problems-at-the-source) 

 N+1 queries silently destroy Laravel app performance. This guide shows you how to detect, fix, and prevent them using eager loading strategies, query counting in tests, and Eloquent relationship tuning.

   [![](https://cdn.msaied.com/789/40fed96a77e341e8fdd2b49f888d1d92.png)](https://msaied.com/articles/event-sourcing-in-laravel-aggregates-projectors-and-reactors-without-a-framework)17 Oct 2026·4 min read 

### [Event Sourcing in Laravel: Aggregates, Projectors, and Reactors Without a Framework](https://msaied.com/articles/event-sourcing-in-laravel-aggregates-projectors-and-reactors-without-a-framework) 

 Build a lean event-sourced system in Laravel using plain PHP classes, Eloquent event streams, and synchronous projectors — no heavy package required. Practical patterns for aggregates, snapshots, and read-model rebuilds.

   [![](https://cdn.msaied.com/756/69efdf9ac9ec1e1f61378055f1cd6e92.png)](https://msaied.com/articles/eloquent-at-scale-chunked-iteration-lazy-collections-and-cursor-pagination)9 Oct 2026·4 min read 

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

 Processing large Eloquent result sets without exhausting memory requires choosing the right tool. This article breaks down chunk(), lazy(), lazyById(), and cursor pagination so you can make informed decisions under real production load.

   [![](https://cdn.msaied.com/753/fea306145a8fc693561ccd02ff95afa5.png)](https://msaied.com/articles/filament-v5101-released-bug-fixes-for-tables-select-search-and-dropdown-navigation)7 Oct 2026·3 min read 

### [Filament v5.10.1 Released: Bug Fixes for Tables, Select Search, and Dropdown Navigation](https://msaied.com/articles/filament-v5101-released-bug-fixes-for-tables-select-search-and-dropdown-navigation) 

 Filament v5.10.1 ships five targeted bug fixes covering null array offsets in responsive column visibility, stale select search results, table loading skeletons, keyboard navigation in dropdowns, and Eloquent date serialization in date-only fields.

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

   [![](https://cdn.msaied.com/750/bc3e713faaa9d7c80b19bb72f0b4f97d.png)](https://msaied.com/articles/routequery-and-model-defaults-in-laravel-1335)7 Oct 2026·3 min read 

### [Route::query() and Model defaults() in Laravel 13.35](https://msaied.com/articles/routequery-and-model-defaults-in-laravel-1335) 

 Laravel 13.35 ships Route::query() for the HTTP QUERY method, an opt-in HasDefaultAttributes trait for Eloquent models, cleaner fake assertions, percentage memory limits for queue workers, and more.

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

   [![](https://cdn.msaied.com/739/2d6897fdcdcf090613f96f72a64b8a78.png)](https://msaied.com/articles/mysql-full-text-search-in-laravel-indexes-relevance-scoring-and-boolean-mode)4 Oct 2026·4 min read 

### [MySQL Full-Text Search in Laravel: Indexes, Relevance Scoring, and Boolean Mode](https://msaied.com/articles/mysql-full-text-search-in-laravel-indexes-relevance-scoring-and-boolean-mode) 

 Skip the Elasticsearch overhead for most apps. MySQL full-text indexes with Laravel give you ranked search, boolean operators, and phrase matching — all through Eloquent and raw expressions.

   [![](https://cdn.msaied.com/728/b96439f5ef5f084b44d736951875f964.png)](https://msaied.com/articles/eloquent-custom-relations-polymorphic-pivots-has-one-of-many-and-raw-join-relations)2 Oct 2026·3 min read 

### [Eloquent Custom Relations: Polymorphic Pivots, Has-One-Of-Many, and Raw Join Relations](https://msaied.com/articles/eloquent-custom-relations-polymorphic-pivots-has-one-of-many-and-raw-join-relations) 

 Beyond belongsTo and hasMany lies a set of underused Eloquent relation types that eliminate ugly query hacks. This article covers HasOneOfMany, custom intermediate table models, and rolling your own relation class.

   [![](https://cdn.msaied.com/725/6d4daa85070ffb81d6a9a3e25a8ed08c.png)](https://msaied.com/articles/laravel-14-adds-a-defaults-method-to-eloquent-models)30 Sep 2026·3 min read 

### [Laravel 14 Adds a defaults() Method to Eloquent Models](https://msaied.com/articles/laravel-14-adds-a-defaults-method-to-eloquent-models) 

 Laravel 14 introduces a defaults() method for Eloquent models, letting you set dynamic default attribute values using config(), now(), feature flags, and any runtime PHP expression.

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

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

 1 / 11 [Older →](https://msaied.com/articles?search=Eloquent&page=2)   

  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 (48) ](https://msaied.com/articles?category=ai&search=Eloquent&sort=new) [Composer Pacakge (80) ](https://msaied.com/articles?category=composer-pacakge&search=Eloquent&sort=new) [Filament (27) ](https://msaied.com/articles?category=filament&search=Eloquent&sort=new) [Laravel (266) ](https://msaied.com/articles?category=laravel&search=Eloquent&sort=new) [Livewire (13) ](https://msaied.com/articles?category=livewire&search=Eloquent&sort=new) [Open Source (44) ](https://msaied.com/articles?category=open-source&search=Eloquent&sort=new) [PHP (27) ](https://msaied.com/articles?category=php&search=Eloquent&sort=new) [Tips &amp; Tricks (32) ](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)
