legend3---lavarel常用artisan命令操作
一、总结
一句话总结:
帮助:php artisan可以调出帮助命令
1、npm安装后盾js?
npm install hdjs
node_modules会被创建
2、安装中间件?
php artisan make:middleware AdminMiddleware
app/Http/Middleware/AdminMiddleware.php会被创建
3、创建控制器?
php artisan make:controller Admin/MyController
app/Http/Controllers/Admin/MyController.php会被创建
4、创建请求?
php artisan make:request AdminPost
app/Http/Requests/AdminPost.php会被创建
5、创建资源控制器?
php artisan make:controller AdminTagController --resource
app/Http/Controllers/Admin/TagController.php被创建
6、创建模型?
php artisan make:model Model/Tag -m
app/Model/Tag.php被创建
database/migrations/2019_09_15_212633_create_tags_table.php被创建