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/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) 

   [![](https://cdn.msaied.com/720/3e3d256d54dd4036099122e0b035e482.png)](https://msaied.com/articles/postgresql-recursive-ctes-in-laravel-hierarchical-data-without-the-orm-gymnastics)30 Sep 2026·2 min read 

### [PostgreSQL Recursive CTEs in Laravel: Hierarchical Data Without the ORM Gymnastics](https://msaied.com/articles/postgresql-recursive-ctes-in-laravel-hierarchical-data-without-the-orm-gymnastics) 

 Recursive CTEs let PostgreSQL walk tree structures in a single query. Learn how to wire them into Laravel's query builder, map results to Eloquent models, and avoid the classic infinite-loop trap.

   [![](https://cdn.msaied.com/717/c7051bd4ebce37109a2149b0bd8cbdd9.png)](https://msaied.com/articles/elastic-bridge-eloquent-style-queries-for-elasticsearch-and-opensearch-in-laravel)29 Sep 2026·4 min read 

### [Elastic Bridge: Eloquent-Style Queries for Elasticsearch and OpenSearch in Laravel](https://msaied.com/articles/elastic-bridge-eloquent-style-queries-for-elasticsearch-and-opensearch-in-laravel) 

 Elastic Bridge is a Laravel package that lets you query Elasticsearch and OpenSearch using a fluent, Eloquent-style API — no hand-written JSON DSL required. It supports full-text search, filters, aggregations, cursor pagination, and testing utilities.

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

   [![](https://cdn.msaied.com/712/7fd2cb3e1dda6c009d734cd376d14e36.png)](https://msaied.com/articles/profiling-laravel-with-blackfire-and-xdebug-finding-real-bottlenecks-2)28 Sep 2026·4 min read 

### [Profiling Laravel with Blackfire and Xdebug: Finding Real Bottlenecks](https://msaied.com/articles/profiling-laravel-with-blackfire-and-xdebug-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 Eloquent queries, service resolution, and middleware stacks.

   [![](https://cdn.msaied.com/708/08ce1de79b1d408fbd91c91ddcb3f056.png)](https://msaied.com/articles/multi-tenant-saas-with-laravel-scoping-queries-resolving-tenants-and-isolating-state)27 Sep 2026·3 min read 

### [Multi-Tenant SaaS with Laravel: Scoping Queries, Resolving Tenants, and Isolating State](https://msaied.com/articles/multi-tenant-saas-with-laravel-scoping-queries-resolving-tenants-and-isolating-state) 

 A practical deep-dive into building multi-tenant SaaS with Laravel — covering tenant resolution middleware, automatic Eloquent scoping, connection switching, and safe singleton isolation without a third-party package.

   [![](https://cdn.msaied.com/706/a9d051bc039469c10d1d4c5fc364e598.png)](https://msaied.com/articles/typed-php-83-enums-as-eloquent-casts-route-parameters-and-validation-rules-1)26 Sep 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-1) 

 Go beyond basic enum casting. Learn how to wire PHP 8.3 enums into Eloquent, bind them as route model parameters, and write reusable validation rules — all with full type safety and zero boilerplate.

   [![](https://cdn.msaied.com/697/2450936023128760d64547a61ee24087.png)](https://msaied.com/articles/auto-load-generated-columns-after-save-with-laravels-refreshes-attribute)23 Sep 2026·4 min read 

### [Auto-Load Generated Columns After Save with Laravel's #\[Refreshes\] Attribute](https://msaied.com/articles/auto-load-generated-columns-after-save-with-laravels-refreshes-attribute) 

 Laravel 13.33 introduced the #\[Refreshes\] PHP attribute for Eloquent models. Declare which database-computed columns to reload and Eloquent fetches them automatically after every insert or update.

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

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

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

  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)
