From Prompt to Production: How Craftly Generates a Full Laravel App in Under 2 Minutes

Most AI coding demos stop at a single file or a function. Craftly goes further: from one plain-language prompt, it produces a complete, runnable Laravel application — routes, models, migrations, controllers, views — and serves a live preview in Laravel Sail. In under two minutes. For about 19 cents.

Here is how a single generation actually unfolds.

Step 1 — The Prompt

A customer types something like:

"A small event-booking app for a yoga studio. Instructors can add classes, students can sign up, the admin can see bookings per class."

That is the entire input. No schema, no wireframes, no framework flags. The prompt hits Craftly's RequirementsEngineer agent, which expands it into a structured specification: entities (Instructor, Class, Booking, Student), relationships, roles, and the minimum set of pages needed to cover the described flows.

Step 2 — Architecture

The structured spec is handed to the MasterArchitect, which plans the application: Laravel 12 on PHP 8.4, Breeze for auth, Eloquent models with the right relationships, and a route map that matches the user stories. This stage runs on Sonnet 4.6 — the reasoning matters here more than the raw output speed.

Step 3 — The Forge

The plan flows into the LaravelForge worker, which emits files one by one. A typical small app produces around 56 files: migrations, models, factories, seeders, controllers, form requests, Blade views (15 CRUD screens is common), route files, and config adjustments. Each file streams to the browser as it is written, so the customer sees the codebase take shape in real time instead of waiting for a final bundle.

This phase runs on Haiku 4.5 — small, fast, cheap — because at this stage the hard thinking is already done. The worker just has to follow the architecture precisely.

Step 4 — Live Preview

The generated codebase boots inside Laravel Sail. The customer can click around the actual app, log in, add a class, book it, and see real data flowing through real migrations. If anything looks off — colours, copy, a missing field — the Iteration agent accepts a follow-up prompt and produces precise patches rather than regenerating the whole app.

The Numbers

On average a small-to-medium Laravel generation comes out to:

  • ~56 files written
  • ~15 CRUD views rendered
  • Under 2 minutes wall-clock time
  • ~$0.19 in model-provider costs per full generation

The cost number is what surprises most people. Mixing Sonnet for architecture with Haiku for the bulk of file-level work keeps the bill low while preserving quality where it actually matters.

Why This Matters for Laravel Teams

For a freelance developer or a small agency, the interesting part is not "AI wrote the code." It is that the generated app is a sensible Laravel 12 starting point — conventions respected, migrations clean, no exotic packages — so you can clone it, open it in your editor, and keep working. Craftly is a forge, not a black box.

We built the pipeline specifically for the PHP ecosystem because the 77% of the web running on PHP deserves the same quality of AI tooling the JavaScript world has been enjoying for two years.

Try It

Craftly's Laravel pipeline is live and we're onboarding early users now. If you want to see your own prompt turn into a running app, the waitlist is open.

Try a live demo →