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

 2 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)    2 articles
-----------

Topics     Sort articles Newest first  Oldest first  Sort  

 [Search: database ×Remove search](https://msaied.com/articles?category=tips-tricks&sort=new) [Tips &amp; Tricks ×Remove category](https://msaied.com/articles?search=database&sort=new) [ Clear filters](https://msaied.com/articles) 

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

   [![](https://cdn.msaied.com/605/c67ac0ef4197be20a45afdbc4f26f670.png)](https://msaied.com/articles/pessimistic-locking-in-laravel-eloquent-with-refreshforupdate)28 Aug 2026·3 min read 

### [Pessimistic Locking in Laravel Eloquent with refreshForUpdate()](https://msaied.com/articles/pessimistic-locking-in-laravel-eloquent-with-refreshforupdate) 

 Laravel 13.27 adds refreshForUpdate() to Eloquent, letting you reload a model from the database and acquire a FOR UPDATE row lock in a single method call — no more manual query rebuilding inside transactions.

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

  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)
