A kitchen-sink Laravel + React + Inertia starter for exploring EvoLayer Base — Xuple's AI, ontology, and blocks substrate for Laravel apps, built on the laravel/ai SDK.
- Start here when you want a full demo app with EvoLayer Base already wired in, every example surface visible.
- Use the
xuple/evolayer-basepackage directly when adding Base to an existing Laravel app.
Developer preview: Both
xuple/evolayer-baseandxuple/evolayer-base-starterare public, MIT-licensed, pre-1.0 packages on GitHub and Packagist. The current public install line is starterv0.1.2withxuple/evolayer-basev0.1.1.
| Owns | Posture | |
|---|---|---|
xuple/evolayer-base (package) |
Examples, blocks, agents, ontology, evolayer:* commands, the evolayer.base.* config shape |
Conservative — installs add no routes by default |
xuple/evolayer-base-starter (this repo) |
The Laravel host shell: Inertia/auth wiring, host migrations, laravel/ai patch, kitchen-sink .env.example, CI |
Kitchen-sink — every example feature switched on out of the box |
The starter is a thin fork of laravel/react-starter-kit. It gives you a full Laravel application from day one — auth, host Inertia pages, React components, Tailwind styling, EvoLayer-published examples, config, seeders, and tests are all available to adapt. The examples are owned by the package and committed here so the starter clones and builds without an install step; see Re-syncing the package frontend for how upstream changes flow in.
Public web strategy (post-launch): evodevops.com will be the editorial / teaching home for the EvoDevOps starter-kit family, and docs.evodevops.com/base will be the canonical EvoLayer Base documentation path. In this starter, / mounts the EvoLayer Base demo/install explainer; the package's opt-in marketing routes expose that same page at /about.
- Laravel 13 + Fortify + React 19 + Inertia + TypeScript + Tailwind, following the official React starter structure.
- EvoLayer Base examples: ThreadStudio, PRD Studio, admin inbox, contact AI, voice input, text assist, and marketing pages.
- Structured-output streaming support through the committed
laravel/aipatch. - Spatie permission/activitylog/medialibrary/tags config and migrations committed where the host app must own them, including ULID-compatible morph columns for EvoLayer models.
- A seeded admin demo user plus AI capability ledger for immediate local exploration.
composer create-project xuple/evolayer-base-starter my-app
cd my-app
# install + build the frontend, including SSR
npm install
npm run build # or `npm run dev` for HMR
php artisan servecomposer create-project runs the post-create hook automatically (key:generate, create
the SQLite database, migrate --seed, wayfinder:generate, evolayer:ontology:compile). If you
clone this repo directly instead, run the equivalent in one shot:
composer setupThe starter repository intentionally does not commit composer.lock, matching
the Laravel application skeleton. A created client application should normally
commit its generated composer.lock for deterministic deploys.
Hosting the created app behind Nginx/PHP-FPM? See
docs/local-dev-hosting.md for the write-permission
handoff, SQLite file notes, and proxied Vite --strictPort workflow.
The seeder creates an admin demo user so every example page (including the admin-only Inbox and PRD Studio) is reachable immediately:
| Password | |
|---|---|
test@example.com |
password |
Each bundled example surface is gated by an EVOLAYER_BASE_EXAMPLE_* flag in .env;
starter-level substrate features (medialibrary-backed attachments, etc.) use the
EVOLAYER_BASE_FEATURE_* prefix instead. Set a flag to false to drop that feature's
routes and hide its sidebar entry; the shared evolayer.base.{examples,features} Inertia
prop still carries the key but reports it as false, so client code can branch on it.
.env.example enables the kitchen-sink set explicitly so a fresh install shows the full
surface.
| Flag | What it adds |
|---|---|
EVOLAYER_BASE_EXAMPLE_MARKETING_PAGES |
Public Home / About launcher pages |
EVOLAYER_BASE_EXAMPLE_THREAD_STUDIO |
ThreadStudio — streaming AI compose with structured output |
EVOLAYER_BASE_EXAMPLE_PRD_STUDIO |
PRD Studio — turn notes into scoped requirements |
EVOLAYER_BASE_EXAMPLE_ADMIN_INBOX |
Admin inbox for contact-form submissions |
EVOLAYER_BASE_EXAMPLE_CONTACT_AI |
AI-assisted contact form (triage, auto-tagging) |
EVOLAYER_BASE_EXAMPLE_VOICE_INPUT |
Voice-input block |
EVOLAYER_BASE_EXAMPLE_AI_TEXT_FIELD |
<AiTextField> block — inline streaming suggestions |
EVOLAYER_BASE_FEATURE_CONTACT_ATTACHMENTS |
Contact-form attachment processing (uses medialibrary) |
The AI features default to Gemini. Set a key for whichever provider you point
AI_DEFAULT_PROVIDER at, then verify structured streaming works end to end:
php artisan evolayer:ai:stream-check geminiKeys live in .env (GEMINI_API_KEY, OPENAI_API_KEY, ANTHROPIC_API_KEY, …).
Provider status: ThreadStudio's runtime-approved (directly-verified) providers are Gemini (default) and OpenAI — both pass
evolayer:ai:stream-checkend to end with the committedlaravel/aipatch, and only these two are selectable asAI_THREAD_STUDIO_PROVIDER. Anthropic's structured-streaming path currently returns zeroTextDeltaevents and an empty final payload, so it is diagnostic-eligible but blocked for ThreadStudio runtime / pending re-verification — exercise it withevolayer:ai:smoke-test anthropic(the non-streaming path passes), but it is not runtime-approved for selection. NVIDIA / OpenCode / OpenRouter are likewise router-backed diagnostic-eligible probe candidates, not runtime-approved. Seepatches/README.mdfor the verification matrix.
EvoLayer Base relies on structured-output streaming, which upstream laravel/ai does
not yet support. The fix is shipped as a composer patch:
patches/laravel-ai-structured-streaming.patchis applied automatically oncomposer install/composer updateviacweagans/composer-patches(declared incomposer.json→extra.patches, and allowed inconfig.allow-plugins).- See
patches/README.mdfor the rationale and the upstream-PR tracking note.
If structured streaming ever misbehaves, run php artisan evolayer:doctor — it verifies the
patch marker is present along with the rest of the install.
The xuple/evolayer-base package publishes most of its surface, but a few edits have to live in
host files. These are already applied in this template:
app/Http/Middleware/HandleInertiaRequests.php— shares theevolayer.base.{examples,features}prop.app/Models/User.php— adds Spatie'sHasRolesso the admin gate resolveshasRole('admin').resources/js/components/app-sidebar.tsx— renders the enabled example pages viauseExampleNavItems().resources/js/types/global.d.ts— types theevolayershared prop.resources/js/app.tsx— uses the|title separator.database/seeders/DatabaseSeeder.php— seeds the AI capability ledger and the admin demo user.
The Spatie packages (laravel-permission, laravel-activitylog, laravel-medialibrary,
laravel-tags) have their config and migrations committed under config/ and
database/migrations/. EvoLayer Base's own migrations load from the package and run
automatically — they are not copied into this repo.
The committed activitylog, tags, and medialibrary migrations deliberately use ULID-compatible morph columns where they can point at EvoLayer models:
activity_log.subject_idvianullableUlidMorphs('subject', 'subject')taggables.taggable_idviaulidMorphs('taggable')media.model_idviaulidMorphs('model')
Keep those edits if you regenerate Spatie migrations; PostgreSQL will reject EvoLayer ULIDs in default bigint morph columns.
The EvoLayer React stubs are committed to this repo so it clones and builds without any
publish step. To pull a newer xuple/evolayer-base release's frontend over the top:
composer update xuple/evolayer-base
composer evolayer:resync # re-publishes frontend + config, regenerates wayfinder + ontologyDo not edit files under vendor/xuple/evolayer-base in this starter. Package
internals belong in the xuple/evolayer-base repo;
fix them there, tag a release (or update the local path override per
RELEASE.md), then composer update + composer evolayer:resync here to
pull the change.
To add EvoLayer Base to an existing Laravel app instead (rather than starting here), use
the package's own installer: php artisan evolayer:install. You don't need to run that
command in this starter — its work is already pre-applied.
composer dev— run server, queue, logs, and Vite together.php artisan evolayer:doctor— health-check the install.npm run types:check/npm run build(client + SSR) /composer lint/composer test.docs/local-dev-hosting.md— Nginx/PHP-FPM hosted-dev checklist,tempnam()troubleshooting, and fixed-port Vite HMR guidance.
The starter is also pre-wired for AI coding agents (Claude Code, Codex, OpenCode, Cursor) via Laravel Boost: AGENTS.md / CLAUDE.md carry the starter-specific boundaries followed by Boost's framework guidelines, and .mcp.json / .codex/config.toml / opencode.json register php artisan boost:mcp so agents can call search-docs, tinker, database-query, etc. Skills live under .claude/skills/ and .agents/skills/. Boost is a require-dev dependency; the MCP layer is only available when the app is installed with dev dependencies (the composer install / composer create-project default — composer install --no-dev skips it).
The test runner is PHPUnit (vendor/bin/phpunit), not Pest. This is the inherited posture from laravel/react-starter-kit and has not yet been formally revisited for the EvoLayer pivot. Treat PHPUnit as the current contract — composer test, the kitchen-sink contract test, and CI all assume it — but the question of whether to migrate to Pest before public 0.1 is an open architectural decision tracked alongside the package-side closeout items.
EvoLayer Base is the AI / ontology / blocks substrate: a Laravel + Inertia + React layer that turns the laravel/ai SDK into a structured-output streaming surface, with an ontology.yaml-driven event/projection model and a small block library on top. This starter is the composer create-project entry point for Base. The package itself is xuple/evolayer-base under the evolayer.base.* config and route namespace.
Sibling EvoDevOps layers (evolayer.commerce.*, evolayer.saas.*, evolayer.rls.*, …) are planned as separate packages with their own starter repos following the same pattern; they will not ship inside this Base starter. evodevops.com is the editorial / teaching home for the family; docs.evodevops.com/base is the canonical Base documentation root.
EvoLayer is pre-1.0. Base and the starter are free/public MIT projects published on GitHub and Packagist. See RELEASE.md and CHANGELOG.md.
Built on the Laravel React Starter Kit. Licensed under the MIT license.