APP_DEBUG=true页面都是报404
<p>部署到服务器APP_DEBUG=false的话只能访问首页,其他页面都是报404,APP_DEBUG=true 就都能打开这是什么原因呢?</p><hr>以下是回复内容:<br><div class="ub-html content"><p>很可能是系统缓存了配置信息导致的,通常优化系统后路由和配置信息都会被系统缓存。</p>
<p>清除缓存命令<br></p>
<pre class="brush:bash;toolbar:false">## 清除缓存路由
php artisan route:clear
## 清除缓存配置
php artisan config:clear
## 清除类映射加载优化
php artisan clear-compiled</pre>
<p><br></p>
</div><hr><br>采集网址:<br>https://modstart.com/thread/766
页:
[1]