前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >artisan详解一

artisan详解一

作者头像
苦咖啡
发布2018-04-28 13:32:21
8120
发布2018-04-28 13:32:21
举报
文章被收录于专栏:我的博客我的博客

php artisan 详解

php artisan optimize php artisan optimize –force Since Laravel 5.5 will be PHP 7.0+ it makes sense to remove this feature, since the best way to optimize performance in PHP 7 is just to correctly configure opcache to what’s best for your server and websites. 在php7已经废弃了!!!!

php artisan tinker //查看定义模型database/factories/ModelFactory.php factory(app\User::class, 10)->create(); //注意大小写 App\User::all();//查看记录 App\User::count(); 更多内容参考:https://yii.im/posts/tinker-with-the-data-in-your-laravel-apps-with-php-artisan-tinker/

php artisan config:cache 创建一个加载配置的缓存文件bootstrap/cache/config.php php artisan db:seed 迁移填充数据 php artisan migrate:refresh –seed 重新填充

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2017年3月24日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档