1、处理ajax跨域  使用  composer require barryvdh/laravel-cors

2、laravel更新app_key  php artisan key:generate  

3、定时任务不运行解决,运用whereis php 命令查看是否存在多个多个php,存在需要在crontal里面指定php的位置才可以 

4、基础优化操作

关闭应用 debug app.debug=false 
缓存配置信息   php artisan config:cache
清除配置信息   php artisan config:clear
缓存路由信息   php artisan route:cache
清除路由信息   php artisan route:clear
类映射加载优化   php artisan optimize
清除类映射加载优化   php artisan clear-compiled

根据需要只加载必要的中间件
使用即时编译器(JIT),如:HHVM、OPcache

 

 posted on 2018-11-22 15:32  whlives  阅读(126)  评论(0编辑  收藏  举报