happyxlq / lumen-curd-maker by happyxlq1

lumen curd auto maker
40
3
2
Package Data
Maintainer Username: happyxlq1
Maintainer Contact: heiman8@qq.com (lennon)
Package Create Date: 2018-08-25
Package Last Update: 2022-07-19
Home Page:
Language: Blade
License: MIT
Last Refreshed: 2024-12-23 03:13:52
Package Statistics
Total Downloads: 40
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 3
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

lumen_make

安装 :composer require le2le/lumen-curd-maker

lumen 框架 自动生成增删改查 api接口 和管理后台

1,在bootstrap/app.php中加入2行

$app->register(Le2le\Maker\MakerServiceProvider::class);

$app->withEloquent();

2,访问/maker

会在resources/views/下新建3个文件

header.blade.php index.blade.php layout.blade.php pagination.blade.php

如果已经存在,不会替换这个3个文件

3,选择添加表,选好生成的文件后,点提交

4,把生成的路由文本放到 routes/web.php中

5,访问对应的路由