Laravel Clear Cache Using Artisan Command

  1. php artisan route:cache
  2. php artisan cache:clear
  3. php artisan view:clear
  • We can run these all command in commandline interface (CLI) as well as we can create one function which has stored all these function and run direct this function without open your terminal. So,let’s start.

Clear Config Cache

  • This command is used for clear/delete config bootstrap/cache/config.php file of your application.

Clear Route Cache

  • This command is used to clear route cache of your application.

Clear Cache Laravel Application

  • This command is use for clear your application cache :

Clear View Cache Laravel

  • This command is use to clear view cache of your application.
  • For run this route you need to open your browser and after add this route like below.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Websolutionstuff

Websolutionstuff

96 Followers

I am Laravel and PHP Developer. I have also Good Knowledge of JavaScript, jQuery, Bootstrap and REST API.