Menu

How We Built 280 Sample Business Websites with Laravel and Claude
📰

How We Built 280 Sample Business Websites with Laravel and Claude

DEV Community: laravel·@Eng.nyash·5 days ago
#6nq3Fke3
#devtolaravel#devto#dev#model#sample
Reading 0:00
15s threshold

People who run a small business rarely want to read about a website builder. They want to see a website for their own trade, a plumber's site if they are a plumber, a bakery's site if they bake, and then decide. So we built 280 of them, one per trade, each a complete working site for an invented business, and put them all on one page.

This post covers how the pipeline works, why we never let the model write HTML, and what 280 trades taught us about what a small business website actually needs.

The problem with letting a model write the page

Asking a model for a finished HTML page works often enough to be exciting and fails often enough to be useless. One page drops the contact form, the next invents a CSS class that does not exist, a third quietly changes the layout because the prose ran long.

The fix was to stop asking for pages and start asking for data.

Templates with a slot schema

Every template in our library (there are now over 180, across 10 layout families) ships with a slots.schema.json file.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.