// book 67
patriola.com

Book 67 · Patriola’s Guide to Claude

Build a Full Laravel Application


A real, deployed Laravel newsletter application walked through five real layers — public entry point, job pipeline, mail layer, visual composer, and admin dashboard — verified against its actual source, including a genuine silent bug found along the way.

Buy Ebook on Amazon

Patriola's Guide to Claude — Build a Full Laravel Application: Five Real Layers, Working Together in One App
What this book is

Five real layers, from the actual source

A companion book in this series already covers a real, deployed newsletter system built and shipped without Laravel or any comparable toolkit: plain PHP, a hand-written schema, a signup-to-send pipeline explained as a product feature. This book covers a second, entirely separate newsletter system, one built on Laravel instead, and its subject is different on purpose. Where the companion book asks how a newsletter system works, this one asks how each piece of a real Laravel application actually gets built, and how Claude actually helps build it.

Five real layers make up the application this book teaches from: a public-facing controller that receives signups from six separate websites, a background job pipeline that turns an approved newsletter into hundreds of individual sends, a mail layer that sets real bulk-sender headers most hand-rolled systems skip, a visual composer built as a reactive component that a person actually clicks through, and a full admin dashboard generated by a real Laravel package rather than written by hand from scratch. Every one of these was built, verified, and taught here from the actual source rather than a simplified stand-in written for the book. That verification turned up something worth naming before chapter one starts: a real bug, sitting in the rendering code — two variables used before they're assigned, a few lines above their real definition in the same function. The language doesn't error on it; it treats the early use as a harmless-looking null instead, so the bug produces wrong behavior silently rather than a stack trace loudly. It earns its own chapter.

What you’ll learn

Eight chapters, from the public endpoint to the bug that survived verification

  • the-public-entry-point — The public entry point a signup request actually hits, and the five real defenses layered in front of the database.
  • cors-without-a-package — A small piece of hand-written cross-origin middleware, and why writing roughly forty lines by hand beat pulling in a general package.
  • tokens-not-primary-keys — Two genuinely different token designs, one confirming a new subscriber and one unsubscribing, and why they're built differently on purpose.
  • two-stage-scheduled-dispatch — The real four-state journey a scheduled newsletter travels through, and which class owns each step.
  • sending-safely-twice — The job that actually sends the mail, and the production discipline wrapped around it: retries, a second safety check, a sender-spoofing guard, and a deliberate delay tuned to a specific hosting constraint.
  • the-composer-and-the-renderer — The visual composer a person clicks through to build a newsletter, alongside the real, wired-in path where Claude drafts content directly into that same tool.
  • a-bug-found-during-verification — Exactly what went wrong, why the language let it happen silently, and the general shape of mistake worth watching for elsewhere.
  • conclusion — A look back at the pattern itself — four independently reasonable layers, and what actually happened across the real sessions that built each one.
From the book

A preview

Two variables get used before they're assigned, a few lines above their real definition in the same function. The language doesn't error on it — it treats the early use as a harmless-looking null instead, so the bug produces wrong behavior silently rather than a stack trace loudly.
Who it’s for

Anyone building a real Laravel application with Claude

This is for anyone building a real Laravel application with Claude who wants to see how each layer actually gets built, verified, and occasionally broken — and what a bug that survives its own verification pass actually teaches about the language it's written in.

A longer excerpt is available to newsletter subscribers.

Buy Ebook on Amazon

Stay current

New books in this series

One short email per book launch.