2.14.2.4. Clearing Laravel System Cache
To clear the cache in Laravel, do the following:
- Change to your project directory:
cd ~/example.com/www/
- To clear the desired cache, run the appropriate command:
- Reoptimizing the loader class:
/usr/local/php73/bin/php artisan optimize
- Clearing the application cache:
/usr/local/php73/bin/php artisan cache:clear
- Clearing the route cache:
/usr/local/php73/bin/php artisan route:cache
- Clearing the view frontend cache:
/usr/local/php73/bin/php artisan view:clear
- Clearing the configuration cache:
/usr/local/php73/bin/php artisan config:cache