Laravel Artisan Commands to Clear Cache
In this post, You will learn how to clear route cache, application cache, config cache, view cache, and reoptimized class in a Laravel using the artisan commands.
Clear Route Cache in Laravel
php artisan route:cache
Clear Application Cache in Laravel
php artisan cache:clear
Clear Config Cache in Laravel
php artisan config:cache
Clear View Cache in Laravel
php artisan view:clear
Reoptimize Class
php artisan optimize
Conclusion
Now you have learned how to utilize the php artisan
command to clear the cache from your Laravel application. Go forth and try these super wonderful artisan commands and let us know how these commands are helping you.
Please login or create new account to add your comment.