artisan更新缓存不生效
把artisan更新缓存命令写到了composer.json的install完事执行脚本中
"scripts": {
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi",
"@php artisan route:cache",
"@php artisan config:cache"
],
期望每次composer install更新路由和配置缓存
直接进服务器项目下执行是正常的
推荐文章: