k2412/inertia-scaffold-svelte

Artisan command to scaffold Laravel + Inertia v3 + Svelte 5 pages (controller, FormRequest, Service/Action, Svelte CRUD pages, state class) following opinionated architecture conventions.

Maintainers

Package info

github.com/K2412/inertia-scaffold-svelte

pkg:composer/k2412/inertia-scaffold-svelte

Statistics

Installs: 30

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 1

v0.1.1 2026-04-20 01:15 UTC

This package is auto-updated.

Last update: 2026-04-20 01:15:55 UTC


README

Artisan command that scaffolds Laravel + Inertia v3 + Svelte 5 pages following opinionated architecture conventions (thin controllers, FormRequests, domain services, Laravel Actions, Svelte 5 runes).

Install

composer require k2412/inertia-scaffold-svelte --dev

Laravel auto-discovers the service provider.

Use

php artisan make:inertia-page Project

Walks you through a prompt-driven flow:

  1. Pick methods to scaffold (index, create, store, show, edit, update, destroy)
  2. Optional Model + migration + factory + seeder + policy
  3. Per write method: Service / Action / inline controller
  4. Optional lib/states/{kebab}-state.svelte.ts class

Prints the matching Route::resource(...)->only([...]) line to paste into routes/web.php.

Flag-driven (non-interactive)

php artisan make:inertia-page Project \
  --only=index,create,store,show \
  --service \
  --model \
  --no-interaction

Customize stubs

php artisan vendor:publish --tag=inertia-scaffold-svelte-stubs

Edits stubs/vendor/inertia-scaffold-svelte/*.stub in your app — the command reads published stubs first, falls back to package defaults.