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

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

  Topics
------

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

Topics    Sort articles Newest first  Oldest first  Sort  

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

  [![](https://cdn.msaied.com/385/7cc838eef4b97e19a20cbbfd52799f52.png)](https://msaied.com/articles/production-ai-agents-in-laravel-streaming-token-budgets-and-structured-output-contracts-2)7 Jul 2026·4 min read 

### [Production AI Agents in Laravel: Streaming, Token Budgets, and Structured Output Contracts](https://msaied.com/articles/production-ai-agents-in-laravel-streaming-token-budgets-and-structured-output-contracts-2) 

 Learn how to build reliable production AI agents in Laravel with streaming responses, enforced token budgets, and typed structured output contracts that survive real-world load.

   [![](https://cdn.msaied.com/383/aa051dd55f1a11417224f74a3b2f0e49.png)](https://msaied.com/articles/laravel-ai-sdk-tool-calling-agents-and-conversation-persistence-2)7 Jul 2026·4 min read 

### [Laravel AI SDK: Tool-Calling Agents and Conversation Persistence](https://msaied.com/articles/laravel-ai-sdk-tool-calling-agents-and-conversation-persistence-2) 

 Build reliable tool-calling AI agents in Laravel using the AI SDK, with typed tool definitions, conversation history persistence, and safe retry semantics — no hand-rolled prompt hacks required.

   [![](https://cdn.msaied.com/386/b58ff453a69cf63b07d792734240afc4.png)](https://msaied.com/articles/laravel-mpp-charge-ai-agents-for-api-access-with-402-payment-required)7 Jul 2026·3 min read 

### [Laravel MPP: Charge AI Agents for API Access with 402 Payment Required](https://msaied.com/articles/laravel-mpp-charge-ai-agents-for-api-access-with-402-payment-required) 

 Laravel MPP is a middleware package that implements the Machine Payments Protocol, letting you gate routes behind HTTP 402 challenges so AI agents can pay for API access via Stripe SPTs or Tempo pathUSD.

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

   [![](https://cdn.msaied.com/325/ee4e73c7fdfa922304594beaac92c93c.png)](https://msaied.com/articles/production-ai-agents-in-laravel-streaming-token-budgets-and-structured-output-contracts-1)30 Jun 2026·4 min read 

### [Production AI Agents in Laravel: Streaming, Token Budgets, and Structured Output Contracts](https://msaied.com/articles/production-ai-agents-in-laravel-streaming-token-budgets-and-structured-output-contracts-1) 

 Building reliable AI agents means more than wiring up an API key. Learn how to stream responses safely, enforce token budgets, and lock down structured output contracts so your Laravel agents behave predictably in production.

   [![](https://cdn.msaied.com/321/6c6dac115e95b0b01f6e7c04c430614c.png)](https://msaied.com/articles/laravel-ai-sdk-tool-calling-agents-and-conversation-persistence-1)29 Jun 2026·3 min read 

### [Laravel AI SDK: Tool-Calling Agents and Conversation Persistence](https://msaied.com/articles/laravel-ai-sdk-tool-calling-agents-and-conversation-persistence-1) 

 Build reliable tool-calling AI agents in Laravel using the AI SDK, with typed tool definitions, structured responses, and conversation history persisted to your database without leaking state between requests.

   [![](https://cdn.msaied.com/283/f0a6d6a6f22d9131bacb96bae1bfc10b.png)](https://msaied.com/articles/ship-ai-with-laravel-failover-queues-and-middleware-for-ai-agents)24 Jun 2026·3 min read 

### [Ship AI with Laravel: Failover, Queues, and Middleware for AI Agents](https://msaied.com/articles/ship-ai-with-laravel-failover-queues-and-middleware-for-ai-agents) 

 Learn how to make Laravel AI agents production-ready with automatic provider failover, background queue processing, and middleware for logging, rate limiting, and cost tracking.

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

   [![](https://cdn.msaied.com/262/4220ef4ee3875717c6384f298d891a3f.png)](https://msaied.com/articles/production-ai-agents-in-laravel-streaming-token-budgets-and-structured-output-contracts)22 Jun 2026·3 min read 

### [Production AI Agents in Laravel: Streaming, Token Budgets, and Structured Output Contracts](https://msaied.com/articles/production-ai-agents-in-laravel-streaming-token-budgets-and-structured-output-contracts) 

 Ship reliable AI agents in Laravel by combining streamed responses, hard token budgets, and typed structured-output contracts — without letting LLM non-determinism bleed into your domain layer.

   [![](https://cdn.msaied.com/260/8c84f424e42da01993c9ba4b8eb19655.png)](https://msaied.com/articles/laravel-ai-sdk-tool-calling-agents-and-conversation-persistence)21 Jun 2026·3 min read 

### [Laravel AI SDK: Tool-Calling Agents and Conversation Persistence](https://msaied.com/articles/laravel-ai-sdk-tool-calling-agents-and-conversation-persistence) 

 Build reliable tool-calling AI agents in Laravel using the Prism package. Learn how to wire tools, persist conversation history, and keep agents stateless between HTTP requests without losing context.

   [![](https://cdn.msaied.com/197/625357a5c28aa7407da0eb0d985ed4d2.png)](https://msaied.com/articles/laravel-ai-sdk-tool-calling-agents-with-structured-output-and-conversation-persistence)15 Jun 2026·4 min read 

### [Laravel AI SDK: Tool-Calling Agents with Structured Output and Conversation Persistence](https://msaied.com/articles/laravel-ai-sdk-tool-calling-agents-with-structured-output-and-conversation-persistence) 

 Build reliable tool-calling AI agents in Laravel using the Prism package — covering structured output contracts, tool registration, and persisting conversation history across HTTP requests.

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

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