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 Laravel AI SDK introduction for Laravel developers: installation, provider configuration, first agent, prompt flow, usage tracking, and the production boundaries that matter from day one.

Understanding Agents in the Laravel AI SDK
A practical guide to Laravel AI SDK agents: instructions, context, tools, structured output, execution steps, and the production boundaries Laravel must keep around agent behavior.

Prompt Engineering in Laravel Applications
A practical guide to prompt engineering in Laravel applications: instructions, context, constraints, examples, prompt versioning, validation, and safe application boundaries.

Structured Outputs in Laravel AI Applications
A practical guide to structured outputs in Laravel AI applications: schemas, parsing, validation, typed DTOs, fallback behavior, and safe workflow decisions.

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.
