Laravel笔记-常用命令行

Laravel笔记-常用命令行
Xtong生成接口文档
如果使用了 knuckleswtf/scribe 来生成 api文档
shell
1 | php artisan scribe:generate |
数据库数据初始化
重新加载数据库,默认执行 database/seeders/DatabaseSeeder.php
下的run()
shell
1 | php artisan migrate:refresh --seed |
生成 model
shell
1 | php artisan make:model Roles |
生成 controller
shell
1 | php artisan make:controller Api/v1/RoleController --api |
生成 Request
shell
1 | php artisan make:request CarStoreRequest |
生成中间件
shell
1 | php artisan make:middleware SetPageSize |