How to clean all Laravel caches in one command

Categorized as Laravel Tagged ,

Hello friends! Maybe you didn’t know, but it is possible to clean all Laravel caches in one php artisan command.

This was the old way of cleaning caches with three separate commands:

php artisan cache:clear
php artisan route:clear
php artisan config:clear

But you just need to run only this one:

php artisan optimize:clear

Leave a reply

Your email address will not be published.