k2412/inertia-scaffold-svelte
| Install | |
|---|---|
composer require k2412/inertia-scaffold-svelte |
|
| Latest Version: | v0.1.1 |
| PHP: | ^8.2 |
| License: | MIT |
| Last Updated: | Apr 20, 2026 |
| Links: | GitHub · Packagist |
k2412/inertia-scaffold-svelte
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:
- Pick methods to scaffold (index, create, store, show, edit, update, destroy)
- Optional Model + migration + factory + seeder + policy
- Per write method: Service / Action / inline controller
- Optional
lib/states/{kebab}-state.svelte.tsclass
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.
Related Packages
Scaffold Laravel resources for Inertia (Vue/React) or Blade (migration, model, c...
Laravel 5 prototyping tool. Creates files based on the templates. It comes with...
Laravel CRUD Generator/Model/Migrate from just one command with including Contro...
Laravel 5* Scaffold Generator