如何清除共享主机上的laravel缓存

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了如何清除共享主机上的laravel缓存相关的知识,希望对你有一定的参考价值。

Clear Laravel Cache on shared hosting
  1. Route::get('/clear-cache', function() {
  2. $exitCode = Artisan::call('cache:clear');
  3. return "Cache is cleared";
  4. });

以上是关于如何清除共享主机上的laravel缓存的主要内容,如果未能解决你的问题,请参考以下文章