10-Apr-2023
.
Admin
Today,
In this blog,I will give you example of laravel 8 clear cache. you will learn laravel 8 clear cache config. This article will give you simple example of laravel 8 cache clear view. We will look at example of laravel 8 cache clear config. You just need to some step to done laravel 8 cache clear command.
I was fetching one issue suddenly my view cache with error during development. i did try lot to refresh and something other but i can't see any more change in my view, but at last I did resolve my problem using laravel command so, let's see i added several command for clear cache from view, route, confir etc.
Clear Cache:
php artisan cache:clear
Clear Route Cache:
php artisan route:cache
Clear View Cache:
php artisan view:clear
Clear Config Cache:
php artisan config:cache
You can also clear cache without command using route. so you can create route as like bellow:
Route::get('/clear-cache-all', function() {
Artisan::call('cache:clear');
dd("Cache Clear All");
});
It will help you...
#Laravel 8
#Laravel 7
#Laravel
#Laravel 6