n How to clear cache of route, view, config in Laravel 7 | CodimTh

Please Disable Your Browser Adblock Extension for our site and Refresh This Page!

our ads are user friendly, we do not serve popup ads. We serve responsible ads!

Refresh Page
Skip to main content
On . By CodimTh
Category:

In this tuto, I'll give you list of commands for clear cache in laravel 7, clear config cache in laravel, clear route cache in laravel and clear view cache in laravel 7. i will give you all commands for clearing cache in laravel 7 application. you can also clear cache without command in laravel 7.

Sometime we need to cache clear when you change in configuration file or any thing change on view file after long time. so bellow command will help you to clear cache in laravel 7.

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

 

also you can clear cache without command using route. so you can create route as like bellow:

Route::get('/clear-cache', function() {
    Artisan::call('cache:clear');
});

 

I hope you found this article useful. let me know if you have any questions and I’ll be happy to answer them.

Riadh Rahmi

Senior Web Developer PHP/Drupal & Laravel

I am a senior web developer, I have experience in planning and developing large scale dynamic web solutions especially in Drupal & Laravel.

Web Posts

Search

Page Facebook