LaraEngine Get LaraEngine
Deployed and running — 106 tests passing, zero static-analysis errors

Your AI agent shouldn't be inventing your architecture

Point Claude Code or Cursor at a real architecture instead of a blank repo. Billing, teams, RBAC, an admin panel and background jobs already work; the docs and conventions tell your agent how the codebase fits together; and 106 tests plus PHPStan level 8 flag what it gets wrong. LaraEngine is a production Laravel SaaS foundation built for AI-directed development.

Extracted from the codebase deployed at leadstallion.com — real and running, and yours to read and test before you buy.

An agent with no architecture writes code that doesn't add up.

Point an AI agent at an empty Laravel skeleton and ask for "auth, billing, an admin panel," and you get code that works line by line but never coheres — no conventions, no throughline, a slightly different structure every prompt. LaraEngine is the opposite starting point: one obvious way to do things, a documented domain model, and a test suite that catches what the agent gets wrong. You stay the architect. The agent builds against something stable.

How it works

The loop

Each pass leaves the codebase and its docs stronger, so the next pass — yours or the agent's — starts from more.

  1. 1

    Start from the foundation. Auth, billing, RBAC, an admin panel and background jobs, all working.

  2. 2

    Your agent reads /docs and the conventions — architecture, request flow, where things live, how "done" is defined.

  3. 3

    You decide what to build, and how. The architecture decisions stay yours.

  4. 4

    The agent implements it against a structure that already makes sense — not one it improvised.

  5. 5

    Tests and PHPStan flag what broke. pest and level-8 static analysis are the guardrails on generated code.

  6. 6

    You update the docs. The next session inherits the knowledge, so the codebase gets easier to extend, not harder.

What's in the repo

A foundation an agent can follow — and you can control.

A documented architecture, not a mystery

docs/architecture.md walks the domain model, the request and middleware flow, the RBAC matrix, the job pipeline. docs/customization.md shows how to extend each part. The context an AI agent — or a new teammate — needs, already written.

CLAUDE.md and AGENTS.md at the root

Conventions, where things live, how to run the tests and static analysis, what "done" looks like. Your agent has project context from the first prompt. Cursor users get the same through the rules file.

Tests and PHPStan as guardrails

106 Pest tests and PHPStan level 8 with zero errors. When an agent generates something wrong, it's caught before it ships — not in production. strict_types throughout, Pint-clean.

Billing that's actually wired up

Laravel Cashier, a real checkout flow, and a webhook listener that keeps a member's plan in sync — upgrades, downgrades, cancellations, failed payments all handled. Documented in docs/webhooks.md.

RBAC past "admin vs. user"

Six Spatie-permission-backed roles and a permission matrix, with an admin panel gated behind role checks and a separate email two-factor step.

Conventional Laravel you control

Blade — no Livewire, Inertia, or SPA. Database queues — no Redis or Horizon. Nothing exotic for an agent, or for you, to fight. You can read every layer and stay in charge of it.

What you can build

The foundation is done. Your AI agent builds the part that's yours.

Accounts, teams, billing, the admin panel and the scheduler are already in place. What you point the agent at is the product.

A subscription API product

Plans and billing are done — the agent builds the API surface, keys, and rate limits.

An AI-wrapper SaaS

Billing, usage metering, and teams exist — the agent builds the prompt pipeline and the product UI.

A B2B workflow or internal tool

The role matrix and admin panel are there — the agent builds the domain models and approval flows.

A marketplace or directory

Membership tiers and gated visibility already work — the agent builds listings, search, and ingestion.

A data or monitoring product

Scheduled jobs, a queue worker, and per-plan limits are in place — the agent builds the collectors and dashboards.

The lead-prospecting build it ships with

A complete real feature — public-directory scrapers, a scoring engine, market-gated results — running at leadstallion.com. Study how a full domain sits on the foundation, then keep it or replace it with yours.

The stack
Laravel 13 · PHP 8.3+ · Blade + Bootstrap 5 + Vite · Spatie RBAC · Cashier + Stripe · Pest + PHPUnit · Larastan (PHPStan 8)

No Livewire, no Inertia, no SPA. No Redis, no Horizon, no multi-tenancy to configure first. strict_types throughout, Pint-clean, one obvious way to do things — the kind of codebase an agent can follow.

Built to run, not to look like it runs.

Most starter kits are written to look like a real app — scaffolding and a dashboard shell with nothing underneath. LaraEngine is deployed and running, with 106 automated tests and zero errors from PHPStan at its strictest level. You don't take that on faith: you get the full source, and you read it and run the suite before you commit to building on it.

Pricing

Full source, either way. No locked-down core.

You'll be asked for your GitHub username during checkout — that's who gets invited to the private repo the moment payment completes.

Standard License

For a single project.

$249

  • ✓ Full source, unlimited modifications
  • ✓ Use in one end product you build and deploy
  • ✓ Your own SaaS, or a single client engagement
Get Standard

Extended License

Agencies

For agencies and serial builders.

$499

  • ✓ Everything in Standard
  • ✓ Use in unlimited end products
  • ✓ Build it once, reuse it for the next ten clients
Get Extended

See the full license terms for exactly what's included.

FAQ

Questions

Does this actually work with Claude Code and Cursor?

Yes. The repo ships with a CLAUDE.md / AGENTS.md, a conventions doc, and architecture docs written for exactly this. Point your agent at the codebase and it has context from the first message. Cursor users get the same through the rules file.

Isn't this just another Laravel boilerplate?

Boilerplate gives you empty scaffolding. This is a running, documented, tested application with real billing and RBAC — plus the docs and conventions an agent needs to extend it without reinventing the structure. The difference shows the moment you point an agent at each.

What's the lead-prospecting code for?

It's a complete, real feature — public-directory scrapers, a scoring engine, market-gated results — deployed at leadstallion.com. It's included as a worked example of how a full domain sits on the foundation. Keep it, learn from it, or delete it and build your own.

Do I need to understand the whole codebase, or does the agent?

Both, a little. It's conventional Laravel, so you can read and control it. The docs and CLAUDE.md give the agent enough to work. You stay the architect; the agent does the implementation.

Is this actually deployed somewhere, or a repo built to be sold?

Deployed and running at leadstallion.com — the same architecture you're buying — plus 106 tests and zero PHPStan errors at the strictest level that you can run yourself.

Do I need Redis, Horizon, or complex infrastructure?

No. Queues run on the database driver, background jobs run through Laravel's scheduler. One database, one queue worker, and the full pipeline runs.

Can I use this for a client project?

Yes — a Standard License covers one end product, whether that's your own SaaS or a single client's. Need it across multiple client projects? That's what Extended is for.

Spend your next month on what makes your product different — not on billing and an admin panel.

Your AI agent is ready to build. Give it a foundation worth building on.

Get LaraEngine →