Laravel 6.x instant all cache clear from Application Cache, route Cache , config Cache , compiled Cache ,view Cache and Browser cache by route function
- Post by: Public
- on: 22-09-19
Laravel 6.x cache clear command. clear all cache instant by command and route function
Application cache by command line:
$php artisan cache:clearRoute cache Clear
$php artisan route:cacheconfig cache Clear
$php artisan config:clearview cache Clear
$php artisan view:clearBrowser cache Clear
Route::get('/clear-cache', function() {
Artisan::call('cache:clear');
return "Cache is cleared";
});
Comments