Table of Contents
AI for Artisans — Mastering the Laravel AI SDK
By Fakhar Zaman Khan
|
First Edition, 2026
|
Laravel 12 · PHP 8.4+
Preface
I
Part I — The Foundation
Chapter 1: The AI Revolution Meets PHP
Chapter 2: Setting Up Your AI Development Environment
I
Part II — Agents: The Heart of the SDK
Chapter 3: Understanding Agents
Chapter 4: Conversations and Memory
Chapter 5: Structured Output
Chapter 6: Tools — Extending Agent Capabilities
Chapter 7: Agent Configuration and Middleware
I
Part III — Multimodal AI
Chapter 8: Image Generation
Chapter 9: Audio — Text-to-Speech and Transcription
Chapter 10: Attachments and File Handling
V
Part IV — Embeddings, Search, and RAG
Chapter 11: Vector Embeddings
Chapter 12: Semantic Search and Similarity
Chapter 13: Retrieval-Augmented Generation (RAG)
Chapter 14: Document Reranking
V
Part V — Real-Time AI and Production Patterns
Chapter 15: Streaming Responses
Chapter 16: Broadcasting and Queuing
Chapter 17: Failover and Resilience
Chapter 18: Testing AI Features
VI
Part VI & VII — MCP and Real-World Projects
Chapter 19: Laravel MCP — Model Context Protocol
Chapter 20: Project — AI-Powered Customer Support Bot
Chapter 21: Project — E-Commerce Product Description Generator
Chapter 22: Project — Multi-Modal Content Platform
Appendices
Appendix A: Provider Reference
Appendix B: Complete API Reference
Appendix C: Event Reference
Appendix D: Troubleshooting Guide
Appendix E: Resources and Further Reading