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

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

  Topics
------

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

Topics    Sort articles Newest first  Oldest first  Sort  

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

  [![](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/695/68465c4a316f52e811ca17f35812522d.png)](https://msaied.com/articles/whats-new-in-laravel-1333-tagged-memoized-cache-model-refreshes-and-more)22 Sep 2026·3 min read 

### [What's New in Laravel 13.33: Tagged Memoized Cache, Model Refreshes, and More](https://msaied.com/articles/whats-new-in-laravel-1333-tagged-memoized-cache-model-refreshes-and-more) 

 Laravel 13.33 ships tagged support for the memoized cache store, a #\[Refreshes\] model attribute for generated columns, nullable AsCollection casts, inplace() index migrations, and several quality-of-life improvements.

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

   [![](https://cdn.msaied.com/691/336355c7690e72d026fa4cc54943c82b.png)](https://msaied.com/articles/fast-excel-5x-adds-streaming-imports-and-safer-exports-for-laravel)20 Sep 2026·4 min read 

### [Fast Excel 5.x Adds Streaming Imports and Safer Exports for Laravel](https://msaied.com/articles/fast-excel-5x-adds-streaming-imports-and-safer-exports-for-laravel) 

 Fast Excel 5 brings lazy streaming imports via LazyCollection, chunked import controls with headerRow() and startRow(), sheet and column selection, and formula-injection protection with escapeFormulas().

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

   [![](https://cdn.msaied.com/663/b8e39b17d427358aa43b5c3e8c1be908.png)](https://msaied.com/articles/macros-mixins-and-custom-collection-methods-in-laravel-2)13 Sep 2026·4 min read 

### [Macros, Mixins, and Custom Collection Methods in Laravel](https://msaied.com/articles/macros-mixins-and-custom-collection-methods-in-laravel-2) 

 Learn how to extend Laravel's core classes with macros, mixins, and custom Collection methods — keeping your codebase expressive without forking the framework.

   [![](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/626/8cc4b384a3f740d25d1f8ff8520d36a0.png)](https://msaied.com/articles/group-adjacent-collection-items-in-laravel-with-chunkby)3 Sep 2026·3 min read 

### [Group Adjacent Collection Items in Laravel with chunkBy()](https://msaied.com/articles/group-adjacent-collection-items-in-laravel-with-chunkby) 

 Laravel 13.30 adds chunkBy(), a clean shorthand for chunkWhile() that groups consecutive collection items sharing the same key value — with full LazyCollection support for memory-efficient streaming.

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

   [![](https://cdn.msaied.com/622/59bd72aa94848dfb195df6dcfb498e43.png)](https://msaied.com/articles/collections-chunkby-and-storage-path-hardening-in-laravel-1330)1 Sep 2026·3 min read 

### [Collections chunkBy() and Storage Path Hardening in Laravel 13.30](https://msaied.com/articles/collections-chunkby-and-storage-path-hardening-in-laravel-1330) 

 Laravel 13.30 ships chunkBy() for grouping adjacent collection items, closes a path-traversal gap in Storage::path(), and prints queue worker stop reasons directly in console output.

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

   [![](https://cdn.msaied.com/623/486e2dce5130f1082093684a345ce5ef.png)](https://msaied.com/articles/forte-parse-and-rewrite-laravel-blade-templates-with-a-typed-syntax-tree)1 Sep 2026·4 min read 

### [Forte: Parse and Rewrite Laravel Blade Templates with a Typed Syntax Tree](https://msaied.com/articles/forte-parse-and-rewrite-laravel-blade-templates-with-a-typed-syntax-tree) 

 Forte is a PHP 8.2 package that parses Blade templates into a typed syntax tree, lets you query nodes with XPath or collection methods, and rewrites files safely — without touching strings, comments, or attributes you never meant to change.

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

   [![](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) 

   ← Newer1. 1
2. [2](https://msaied.com/articles?search=collection&page=2)
3. [3](https://msaied.com/articles?search=collection&page=3)

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