Clear all Laravel Caches with a Single Line

avatar
Mar 23, 2022 · Snippet · 1 min, 105 words

We can easily clear all Laravel caches with a single line.

Instead of runnig these separete commands:

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

We can do same thing by running this simple command:

php artisan optimize:clear

Comments

No comments yet…