fznoviar / suitgenerator
Laravel SuitCMS 生成器
dev-master
2017-02-16 06:29 UTC
This package is not auto-updated.
Last update: 2024-09-23 15:00:06 UTC
README
从迁移为SuitCMS生成模型、控制器、视图,仍为alpha版本
安装
首先,您需要通过Composer安装此包
$ composer require fznoviar/suitgenerator
然后,更新 config/app.php
文件,添加服务提供者的条目。
'providers' => [ // ... Fznoviar\SuitGenerator\SuitGeneratorServiceProvider::class, ];
使用
要从一个表生成模型,
php artisan suit:model --table=posts
要从一个表生成控制器,
php artisan suit:controller --table=posts,gallery_categories
要生成所有表的视图,
php artisan suit:view --all
要从一个表生成整个MVC结构,
php artisan suit:module --table=posts