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

 40 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=performance&sort=new)
- [Composer Pacakge85 articles](https://msaied.com/articles?category=composer-pacakge&search=performance&sort=new)
- [Filament31 articles](https://msaied.com/articles?category=filament&search=performance&sort=new)
- [Laravel292 articles](https://msaied.com/articles?category=laravel&search=performance&sort=new)
- [Livewire16 articles](https://msaied.com/articles?category=livewire&search=performance&sort=new)
- [Open Source48 articles](https://msaied.com/articles?category=open-source&search=performance&sort=new)
- [PHP34 articles](https://msaied.com/articles?category=php&search=performance&sort=new)
- [Tips &amp; Tricks37 articles](https://msaied.com/articles?category=tips-tricks&search=performance&sort=new)

  Topics
------

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

Topics    Sort articles Newest first  Oldest first  Sort  

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

  [![](https://cdn.msaied.com/169/5efebaf19646869da7c6064340c7d09f.png)](https://msaied.com/articles/postgresql-jsonb-in-laravel-indexing-querying-and-casting-without-the-chaos)14 Jun 2026·3 min read 

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

 JSONB columns are powerful but easy to misuse. Learn how to index, query, and cast PostgreSQL JSONB data in Laravel without sacrificing type safety or query performance.

   [![](https://cdn.msaied.com/160/89eca7b3d4a7f19692354a7621a64bb3.png)](https://msaied.com/articles/optimizing-eloquent-queries-beyond-n1-with-withexists-and-withcount)14 Jun 2026·4 min read 

### [Optimizing Eloquent Queries: Beyond N+1 with `withExists` and `withCount`](https://msaied.com/articles/optimizing-eloquent-queries-beyond-n1-with-withexists-and-withcount) 

 N+1 query issues are a common performance bottleneck in Laravel applications. While `with()` is the go-to solution for eager loading relationships, many developers overlook the power of `withExists()` and `withCount()` for specific scenarios. This article dives into practical applications of these lesser-used Eloquent methods to significantly reduce query load and improve application responsiveness, especially when dealing with conditional rendering or aggregate data.

   [![](https://cdn.msaied.com/110/57f43d7a3cbdd743c3c984eac161a262.png)](https://msaied.com/articles/optimize-laravel-e-shop-homepage-with-livewire-defer-and-lazy)4 Jun 2026·3 min read 

### [Optimize Laravel E-Shop Homepage with Livewire: Defer and Lazy](https://msaied.com/articles/optimize-laravel-e-shop-homepage-with-livewire-defer-and-lazy) 

 Learn how to significantly improve your Laravel e-shop's homepage performance using Livewire's defer and lazy loading features. Enhance user experience and reduce initial load times.

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

   [![](https://cdn.msaied.com/96/d7f17428bf750e57ce14033f6a5aa249.png)](https://msaied.com/articles/get-array-of-ids-from-eloquent-collection-pluck-or-modelkeys)24 Aug 2022·3 min read 

### [Get Array of IDs from Eloquent Collection: pluck() or modelKeys()](https://msaied.com/articles/get-array-of-ids-from-eloquent-collection-pluck-or-modelkeys) 

 Discover two efficient methods, `pluck()` and `modelKeys()`, to extract arrays of IDs from Laravel Eloquent collections. Learn when to use each for optimal performance and code clarity.

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

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

 5 / 5 Older →   

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