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

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

 Search articles ⌕×Search 

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

←→

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

  Topics
------

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

Topics    Sort articles Newest first  Oldest first  Sort  

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

  [![](https://cdn.msaied.com/432/a8a830b45119cc7fafc7e27d7951e114.png)](https://msaied.com/articles/enforce-per-action-waiting-periods-in-laravel-with-the-cooldown-package)16 Jul 2026·4 min read 

### [Enforce Per-Action Waiting Periods in Laravel with the Cooldown Package](https://msaied.com/articles/enforce-per-action-waiting-periods-in-laravel-with-the-cooldown-package) 

 Laravel Cooldown lets you place timed locks on named actions—OTP resends, password resets, payment retries—scoped to any model, IP, or globally, with cache or database persistence.

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

   [![](https://cdn.msaied.com/429/5abced4ee695d6c03e3ae41bbf2fe4bb.png)](https://msaied.com/articles/laravel-legacy-bridge-carry-authenticated-sessions-from-a-legacy-php-app-into-laravel)15 Jul 2026·4 min read 

### [Laravel Legacy Bridge: Carry Authenticated Sessions from a Legacy PHP App into Laravel](https://msaied.com/articles/laravel-legacy-bridge-carry-authenticated-sessions-from-a-legacy-php-app-into-laravel) 

 Laravel Legacy Bridge is a package that reads a legacy session cookie, decodes the payload from the legacy database, and authenticates the matching user in Laravel — no double login required during incremental migrations.

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

   [![](https://cdn.msaied.com/424/b6dac94325ccc99dff6556fefb82969d.png)](https://msaied.com/articles/laravel-quota-enforce-usage-budgets-for-calendar-periods-in-laravel)14 Jul 2026·4 min read 

### [Laravel Quota: Enforce Usage Budgets for Calendar Periods in Laravel](https://msaied.com/articles/laravel-quota-enforce-usage-budgets-for-calendar-periods-in-laravel) 

 Laravel Quota is a package that tracks and enforces cumulative usage limits—like 50 PDF exports per month or 1,000 API calls per day—against calendar-aligned periods, with cache or database backends.

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

   [![](https://cdn.msaied.com/418/4c0c54c81ac02b35d192ac992080bc8b.png)](https://msaied.com/articles/readwrite-splitting-connection-pooling-and-sticky-reads-in-laravel-4)13 Jul 2026·4 min read 

### [Read/Write Splitting, Connection Pooling, and Sticky Reads in Laravel](https://msaied.com/articles/readwrite-splitting-connection-pooling-and-sticky-reads-in-laravel-4) 

 Learn how Laravel's database layer handles read/write splitting, when sticky reads matter, and how to pair connection pooling with PgBouncer or ProxySQL without introducing subtle data-consistency bugs.

   [![](https://cdn.msaied.com/411/8d5b164ce43b1c6b9b658b7f72a0c369.png)](https://msaied.com/articles/practical-rag-in-laravel-pgvector-embeddings-and-retrieval-pipelines-1)11 Jul 2026·4 min read 

### [Practical RAG in Laravel: pgvector, Embeddings, and Retrieval Pipelines](https://msaied.com/articles/practical-rag-in-laravel-pgvector-embeddings-and-retrieval-pipelines-1) 

 Build a production-ready retrieval-augmented generation pipeline in Laravel using pgvector, OpenAI embeddings, and a clean retrieval abstraction — without reaching for a dedicated vector database.

   [![](https://cdn.msaied.com/391/7474cd7f131565e464de5dd316064b92.png)](https://msaied.com/articles/mysql-query-profiling-in-laravel-explain-analyze-slow-query-log-and-index-tuning)8 Jul 2026·3 min read 

### [MySQL Query Profiling in Laravel: EXPLAIN ANALYZE, Slow Query Log, and Index Tuning](https://msaied.com/articles/mysql-query-profiling-in-laravel-explain-analyze-slow-query-log-and-index-tuning) 

 Stop guessing why your Laravel app is slow at the database layer. This guide walks through reading EXPLAIN ANALYZE output, enabling the slow query log, and applying targeted index changes that actually move the needle.

   [![](https://cdn.msaied.com/389/50c273341db2a905f5bc5354ff625722.png)](https://msaied.com/articles/multi-tenant-saas-with-laravel-isolating-queues-storage-and-notifications-per-tenant)8 Jul 2026·3 min read 

### [Multi-Tenant SaaS with Laravel: Isolating Queues, Storage, and Notifications Per Tenant](https://msaied.com/articles/multi-tenant-saas-with-laravel-isolating-queues-storage-and-notifications-per-tenant) 

 Beyond database scoping, true multi-tenant isolation means queues, file storage, and notifications all respect tenant context. Here is how to wire that up cleanly in Laravel without global state leaks.

   [![](https://cdn.msaied.com/367/9c57cfb2f2843dc64aaa6c97bad628af.png)](https://msaied.com/articles/advanced-eloquent-casts-custom-cast-classes-value-objects-and-inbound-only-transforms-1)5 Jul 2026·1 min read 

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

 Go beyond primitive casts. Learn to build custom Eloquent cast classes that hydrate value objects, handle inbound-only transforms, and keep your models clean without leaking domain logic into the database layer.

   [![](https://cdn.msaied.com/358/da422e65efc54b8046de1eaf23f03e90.png)](https://msaied.com/articles/readwrite-splitting-connection-pooling-and-sticky-reads-in-laravel-3)4 Jul 2026·4 min read 

### [Read/Write Splitting, Connection Pooling, and Sticky Reads in Laravel](https://msaied.com/articles/readwrite-splitting-connection-pooling-and-sticky-reads-in-laravel-3) 

 Learn how Laravel's database manager handles read/write splitting, when sticky reads matter, and how to layer PgBouncer or ProxySQL without breaking your application's consistency guarantees.

   [← Newer](https://msaied.com/articles?search=database&page=3)1. [1](https://msaied.com/articles?search=database&page=1)
2. [2](https://msaied.com/articles?search=database&page=2)
3. [3](https://msaied.com/articles?search=database&page=3)
4. 4
5. [5](https://msaied.com/articles?search=database&page=5)
6. [6](https://msaied.com/articles?search=database&page=6)

 4 / 6 [Older →](https://msaied.com/articles?search=database&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 (52) ](https://msaied.com/articles?category=ai&search=database&sort=new) [Composer Pacakge (85) ](https://msaied.com/articles?category=composer-pacakge&search=database&sort=new) [Filament (31) ](https://msaied.com/articles?category=filament&search=database&sort=new) [Laravel (290) ](https://msaied.com/articles?category=laravel&search=database&sort=new) [Livewire (16) ](https://msaied.com/articles?category=livewire&search=database&sort=new) [Open Source (47) ](https://msaied.com/articles?category=open-source&search=database&sort=new) [PHP (34) ](https://msaied.com/articles?category=php&search=database&sort=new) [Tips &amp; Tricks (37) ](https://msaied.com/articles?category=tips-tricks&search=database&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)
