Clear all Laravel Caches with a Single Line

Published: Mar 23, 2022

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