Return to Snippet

Revision: 80163
at February 12, 2020 16:29 by devquora


Initial Title
How to clear laravel cache  on Shared Hosting

Initial Description
Clear Laravel Cache on shared hosting

Initial Code
Route::get('/clear-cache', function() {
    $exitCode = Artisan::call('cache:clear');
    return "Cache is cleared";
});

Initial Tags
php

Initial Language
PHP

Initial URL
https://www.howtocrackaninterview.com/