k2412/inertia-scaffold-svelte
最新稳定版本:v0.1.1
Composer 安装命令:
composer require 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.
README 文档
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:
- 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.
统计信息
- 总下载量: 33
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-19