sands / asasi-scaffold
Asasi 的脚手架生成器
1.1.0
2016-07-26 14:53 UTC
Requires
- php: >=5.5.9
- illuminate/support: ~5.0
- yetanotherape/diff-match-patch: ^1.0
This package is not auto-updated.
Last update: 2024-09-26 01:40:38 UTC
README
发布和修改其他 Laravel 5 基础的模板。
安装
使用 Composer 安装
composer require sands/asasi-scaffold
发布模板
php artisan vendor:publish --provider="Sands\Scaffold\ScaffoldServiceProvider" --tag="templates"
发布模板可以在 config/sands/asasi/scaffold/templates 找到
用法
生成
php artisan scaffold:generate
或者
php artisan scaffold:make {table_name : Database table name. For example: user_tasks} {fields : Field definitions separated by "|". For example: name:Name:string|completed_at:Completed At:dateTime|is_completed:Is Completed:boolean} {relationships? : Model relationships separated by "|". For example: belongsTo:Country:countries:country_id|hasMany:Children:children:parent_id|hasOne:Profile:user_profile:profile_id} {--nesting= : Route nesting configuration following ModelName:foreign_key:route-binding. For example: UserBlacklists:user_blacklist_id:user-blacklists}