Artisan command that scaffolds Laravel + Inertia v3 + Svelte 5 pages following opinionated architecture conventions (thin controllers, FormRequests, domain services, Laravel Actions, Svelte 5 runes).
composer require k2412/inertia-scaffold-svelte --dev
Laravel auto-discovers the service provider.
php artisan make:inertia-page Project
Walks you through a prompt-driven flow:
lib/states/{kebab}-state.svelte.ts classPrints the matching Route::resource(...)->only([...]) line to paste into routes/web.php.
php artisan make:inertia-page Project \
--only=index,create,store,show \
--service \
--model \
--no-interaction
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.