1.配置信息缓存 (配置文件缓存)
php artisan config:cache
清除配置文件缓存
php artisan config:clear
2. 路由缓存
php artisan route:cache
清除路由缓存
php artisan route:clear
3.类映射加载优化
php artisan optimize --force
清除类映射
php artisan clear-compiled
生成的缓存文件在bootstrap/cache文件下
composer重新加载项目
composer dump-autoload
本文由:xiaoshu168 作者:xiaoshu发表,转载请注明来源!