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

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.

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.


About Shahriar Sagor

My name is Shahriar sagor. I'm a developer. I live in Bangladesh and I love to write tutorials and tips that will help to other Developer's. I am a big fan of PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS and Bootstrap from the early stage.

View all posts by Shahriar Sagor →