Blog
Writing.
Articles on Laravel, production AI and building software products. Longer topics are organised into series.

Blog series
AI Engineering
A chapter-by-chapter guide to building production AI features with Laravel: the SDK, agents, prompts, structured output, reliability, model costs, RAG, MCP, streaming, security and observability.
Open the series →
Head First Design Patterns: A Software Engineer’s Book Review
A practical review of Head First Design Patterns—why its visual, problem-first approach works, where it falls short, and how software developers should read it.

The Fundamentals of AI Engineering
A practical guide to AI engineering for Laravel developers: core concepts, architecture, tools, RAG, reliability, security, and the boundaries that keep production systems safe.

Getting Started with the Laravel AI SDK
A practical introduction to the Laravel AI SDK for PHP developers building AI-powered Laravel applications with providers, prompts, and responses.

Understanding Agents in the Laravel AI SDK
Understand how agents work in the Laravel AI SDK, including goals, tools, context, execution loops, and production design trade-offs.

Prompt Engineering in Laravel Applications
Learn practical prompt engineering patterns for Laravel applications, including prompt structure, context management, and reusable prompt contracts.

Structured Outputs in Laravel AI Applications
Build reliable structured outputs in Laravel AI applications using schemas, validation, parsing, and predictable response formats.

Reliability Patterns for AI Responses: Validation and Retry
Design validation and retry patterns that make AI responses more dependable in production Laravel applications.

Multi-Provider Architecture for Laravel AI Applications
Plan a multi-provider Laravel AI architecture that can switch models, reduce vendor lock-in, and improve reliability across AI services.

Understanding AI Model Costs and Token Economics
Understand AI model pricing, token usage, context windows, and cost drivers before shipping AI features in Laravel applications.

AI Model Selection and Cost Optimization
Choose the right AI models for Laravel workloads by balancing quality, latency, context length, reliability, and cost.

Tool Calling and Function Execution in Laravel AI
Use tool calling and function execution to let Laravel AI applications safely interact with APIs, databases, and product workflows.

Retrieval-Augmented Generation (RAG) in Laravel
Learn how retrieval-augmented generation works in Laravel and how to ground AI answers with trusted application data.

Embeddings and Vector Search in Laravel
Understand embeddings and vector search for Laravel applications, including indexing, similarity search, and semantic retrieval patterns.

Designing AI Knowledge Bases with Laravel
Design AI knowledge bases in Laravel that keep content structured, searchable, maintainable, and ready for retrieval-augmented generation.

Conversation Memory and Context Management
Manage conversation memory and context in AI applications without losing control of cost, privacy, relevance, or response quality.

Understanding the Model Context Protocol (MCP)
Understand the Model Context Protocol, why MCP matters, and how it standardizes tool and context access for AI applications.

MCP Server Architecture in Laravel
Explore MCP server architecture in Laravel, including transports, tools, resources, prompts, authentication, and lifecycle design.

Core Components of a Laravel MCP Server
Learn the core building blocks of a Laravel MCP server and how tools, resources, schemas, and handlers fit together.

Designing a Production-Ready MCP Server with Laravel
Design a production-ready MCP server with Laravel using authentication, validation, logging, error handling, and deployment patterns.

Streaming AI Responses in Laravel Applications
Implement streaming AI responses in Laravel applications to improve perceived speed and create responsive user experiences.

Security Considerations for Laravel AI Applications
Review security considerations for Laravel AI applications, including prompt injection, tool permissions, data exposure, and audit trails.

Observability and Debugging in AI Applications
Add observability and debugging to AI applications with logs, traces, evaluations, token tracking, and failure analysis.

Caching, Rate Limiting, and Performance in Laravel AI Applications
Improve Laravel AI application performance with caching, rate limiting, queue design, response reuse, and provider-aware throttling.
