Home Laravel 9 How to Laravel cache clear

How to Laravel cache clear

1 min read
0
0
0

Laravel cache clear , you can use the Artisan command-line tool that comes with Laravel. Here are the steps to clear different types of cache in Laravel.

 

Clear Application Cache:

php artisan cache:clear

Clear Route Cache:

php artisan route:clear

Clear Configuration Cache:

php artisan config:clear

Clear Compiled Views Cache:

php artisan view:clear

Open your terminal, navigate to the root directory of your Laravel project, and run the desired commands. For instance, to clear all caches, you can execute the following commands sequentially

php artisan cache:clear
php artisan route:clear
php artisan config:clear
php artisan view:clear
php artisan event:clear

 

    Load More Related Articles
    Load More By admin
    Load More In Laravel 9

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    Check Also

    Installing Vue.js in a Laravel Project

    Vue.js is a powerful JavaScript framework for creating dynamic user interfaces, while Lara…