How to clear laravel cache on Shared Hosting

/ Published in: PHP
Save to your folder(s)

Clear Laravel Cache on shared hosting

Copy this code and paste it in your HTML
  1. Route::get('/clear-cache', function() {
  2. $exitCode = Artisan::call('cache:clear');
  3. return "Cache is cleared";
  4. });


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.