Home Laravel How to clear cache from route, view, config and all cache data from application in Laravel

How to clear cache from route, view, config and all cache data from application in Laravel

by Shahriar Sagor
clear cache

Today now in this post i would like to share with you my experience and also solution. When i was working on my laravel web application with gitlab. When I was fetching one issue suddenly my view cache also with error during development.So here i did try lot to refresh and something other but i can’t see here any more change in my view, but now at last I can resolve my problem by using laravel command. Here i will show you How to clear cache from route, view, config and all cache data from application in Laravel.

So, let’s see i need to add several command for clear cache from view, route, config etc.

Reoptimized class loader:

php artisan optimize

Clear Cache facade value:

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

Read Also : How to Create Custom Blade Directive in Laravel?

Thanks for read. I hope it help you. For more you can follow us on facebook.

close

You may also like