stackrats/laravel-scaffold-feature
最新稳定版本:0.1.9
Composer 安装命令:
composer require stackrats/laravel-scaffold-feature
包简介
Scaffold new feature directories & files from prompts
README 文档
README
A convenient Laravel package to scaffold structured feature directories and files interactively from Artisan command prompts.
Installation
Install via Composer:
composer require stackrats/laravel-scaffold-feature
Laravel automatically registers the service provider.
Usage
To scaffold a new feature, simply run:
php artisan scaffold:feature
You'll be prompted interactively for:
- Root directory (
App/Features,App/Shared/Features, orApp/) - Optional subdirectory (e.g.,
KnowledgeBase) - Feature name (PascalCase)
- API route method (
post,get,put,delete) - Additional options depending on the method
- Which directories/files to scaffold
After completing the prompts, your feature structure will be automatically created.
Publishing Templates
Optionally, you can publish the stub templates to customize them within your Laravel application:
php artisan vendor:publish --tag=laravel-scaffold-feature
The templates will be copied to:
resources/templates/vendor/laravel-scaffold-feature
Feel free to modify them according to your project's requirements.
License
This package is open-sourced software licensed under the MIT license.
Dev
Format files
./vendor/bin/pint
Run tests
./vendor/bin/pest
统计信息
- 总下载量: 1.11k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-03-17