Sunday, January 13, 2019

Clear cache in laravel

  1. There are some command line clear cache in laravel as:
  •  Clear application cache: php artisan cache:clear

  • Clear route cache: php artisan route:clear

  • Clear config cache: php artisan config:cache

  • Clear complied view files: php artisan view:cache
 - If you don't know how to use specific artisan command, you just need add "help".
Ex: php artisan help view:clear
  • In addition, we have some other command line : 
              - If you want to clearling all session data in laravel, you tried this:
php artisan cache:clear
 or   
type: php artisan tinker > Session::flush().
Some times, you use guide to flushing all sessions:  php artisan key:generate

(If you know some other commands,please let me know by commenting below.Thank you for reading.)