Larave10, uses configuration files to manage various settings for your application. When you make changes to these configuration files, they are usually cached for performance reasons. Clearing the cache ensures that any modifications you make to the configuration files are immediately reflected in your application
Clear Cache:
php artisan cache:clear
Clear View Cache:
php artisan view:clear
Clear Route Cache:
php artisan route:clear
Clear Config Cache:
php artisan config:clear
Clear Event Cache:
php artisan event:clear
All Cache Clear
php artisan optimize:clear
Cache Clear by Route
Route::get('/clear-cache-all', function() {
Artisan::call('cache:clear');
dd("All Cache Clear");
});