sands / asasi-scaffold
Scaffold Generator For 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-10-24 02:04:50 UTC
README
Published and modify templates for other laravel 5 base.
Install
Install using composer
composer require sands/asasi-scaffold
Publish Templates
php artisan vendor:publish --provider="Sands\Scaffold\ScaffoldServiceProvider" --tag="templates"
Published templates can be found at config/sands/asasi/scaffold/templates
Usage
Generate
php artisan scaffold:generate
OR
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}