定制 k2412/inertia-scaffold-svelte 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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:

  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.

统计信息

  • 总下载量: 33
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 6
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固