Laravel, thinking fast.
A free book on building AI features in Laravel that survive real users — features that cost what you expected and fail in ways you planned for. Read it here, or take the PDF with you.
Contents
Chapter 1
Your First AI Endpoint
Chapter 2
Getting an Answer You Can Use
Chapter 4
What a Token Costs You
Chapter 5
Never Let the Browser Talk to the Model
Chapter 6
Slow Is the Default
Chapter 7
Tools — Giving the Model Hands
Chapter 8
The Agent Loop
Chapter 9
Tool Results Are Not Answers
Chapter 10
Side Effects You Cannot Take Back
Chapter 11
The Model Is an Untrusted Caller
Chapter 12
Testing Something That Never Answers Twice
Chapter 13
When the Model Is Wrong
Chapter 14
Observability for Things You Cannot Reproduce
Chapter 15
Failure Is a Feature
Chapter 16
Long Content
Chapter 17
Where the AI Belongs
Chapter 18
Shipping It
Afterword