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

 20 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=casts&sort=new)
- [Composer Pacakge81 articles](https://msaied.com/articles?category=composer-pacakge&search=casts&sort=new)
- [Filament27 articles](https://msaied.com/articles?category=filament&search=casts&sort=new)
- [Laravel267 articles](https://msaied.com/articles?category=laravel&search=casts&sort=new)
- [Livewire13 articles](https://msaied.com/articles?category=livewire&search=casts&sort=new)
- [Open Source44 articles](https://msaied.com/articles?category=open-source&search=casts&sort=new)
- [PHP27 articles](https://msaied.com/articles?category=php&search=casts&sort=new)
- [Tips &amp; Tricks32 articles](https://msaied.com/articles?category=tips-tricks&search=casts&sort=new)

  Topics
------

 [All topics](https://msaied.com/articles?search=casts&sort=new) [AI 48](https://msaied.com/articles?category=ai&search=casts&sort=new) [Composer Pacakge 81](https://msaied.com/articles?category=composer-pacakge&search=casts&sort=new) [Filament 27](https://msaied.com/articles?category=filament&search=casts&sort=new) [Laravel 267](https://msaied.com/articles?category=laravel&search=casts&sort=new) [Livewire 13](https://msaied.com/articles?category=livewire&search=casts&sort=new) [Open Source 44](https://msaied.com/articles?category=open-source&search=casts&sort=new) [PHP 27](https://msaied.com/articles?category=php&search=casts&sort=new) [Tips &amp; Tricks 32](https://msaied.com/articles?category=tips-tricks&search=casts&sort=new)    20 articles
------------

Topics    Sort articles Newest first  Oldest first  Sort  

 [Search: casts ×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/781/c4463b384b964fd45e6f3cfa00f8e95c.png)](https://msaied.com/articles/rule-builders-for-every-validation-rule-in-laravel-1336)14 Oct 2026·4 min read 

### [Rule Builders for Every Validation Rule in Laravel 13.36](https://msaied.com/articles/rule-builders-for-every-validation-rule-in-laravel-1336) 

 Laravel 13.36 ships Rule:: builders for every remaining validation rule, DB::olap() for PlanetScale/Vitess, sticky connection resets between queue jobs, synchronous Mercure broadcasts, and several bug fixes.

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

   [![](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/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/659/44f701e1dc43e64d0b7ecc984d0b34bc.png)](https://msaied.com/articles/custom-eloquent-casts-value-objects-enums-and-encrypted-composites)12 Sep 2026·3 min read 

### [Custom Eloquent Casts: Value Objects, Enums, and Encrypted Composites](https://msaied.com/articles/custom-eloquent-casts-value-objects-enums-and-encrypted-composites) 

 Go beyond primitive storage with Eloquent's CastsAttributes contract. Build reusable value-object casts, handle composite columns, and encrypt sensitive fields without a single accessor.

   [![](https://cdn.msaied.com/583/7301900aac0f2ec5d1347df11ce92188.png)](https://msaied.com/articles/typed-php-83-enums-as-eloquent-casts-route-parameters-and-validation-rules)23 Aug 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) 

 Go beyond basic enum casting. Learn how to wire PHP 8.3 backed enums into Eloquent, route model binding, and custom validation rules to eliminate stringly-typed code across your Laravel application.

   [![](https://cdn.msaied.com/552/a7825c0c6f53d934f84fce522573eafb.png)](https://msaied.com/articles/contextual-eloquent-casts-custom-cast-classes-value-objects-and-inbound-only-transforms)15 Aug 2026·1 min read 

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

 Go beyond primitive casts. Learn how to build custom Eloquent cast classes that hydrate value objects, handle inbound-only transforms, and stay testable without bloating your models.

   [![](https://cdn.msaied.com/549/9eafcdbde2cf4401308fb8644ae9a3ab.png)](https://msaied.com/articles/contextual-dtos-and-value-objects-in-laravel-without-the-bloat)14 Aug 2026·1 min read 

### [Contextual DTOs and Value Objects in Laravel Without the Bloat](https://msaied.com/articles/contextual-dtos-and-value-objects-in-laravel-without-the-bloat) 

 Learn how to design lean DTOs and value objects in Laravel using PHP 8.3 readonly classes, custom Eloquent casts, and factory helpers — without pulling in a heavy DDD framework.

   [![](https://cdn.msaied.com/483/0b80ca4c39b98b48f8d3475ac949ea0f.png)](https://msaied.com/articles/laravel-typed-enums-as-first-class-citizens-casts-rules-and-php-83-features)29 Jul 2026·3 min read 

### [Laravel Typed Enums as First-Class Citizens: Casts, Rules, and PHP 8.3 Features](https://msaied.com/articles/laravel-typed-enums-as-first-class-citizens-casts-rules-and-php-83-features) 

 PHP 8.1 enums changed how we model domain state. This article shows how to wire backed enums into Eloquent casts, form validation rules, and route binding — with PHP 8.3 typed constants making everything tighter.

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

 1 / 3 [Older →](https://msaied.com/articles?search=casts&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=casts&sort=new) [Composer Pacakge (81) ](https://msaied.com/articles?category=composer-pacakge&search=casts&sort=new) [Filament (27) ](https://msaied.com/articles?category=filament&search=casts&sort=new) [Laravel (267) ](https://msaied.com/articles?category=laravel&search=casts&sort=new) [Livewire (13) ](https://msaied.com/articles?category=livewire&search=casts&sort=new) [Open Source (44) ](https://msaied.com/articles?category=open-source&search=casts&sort=new) [PHP (27) ](https://msaied.com/articles?category=php&search=casts&sort=new) [Tips &amp; Tricks (32) ](https://msaied.com/articles?category=tips-tricks&search=casts&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)
