Hello, In this tutorial, I am showing you, how to optimize your laravel website and increase website speed. Let's see
We need to create caching for routes. After caching laravel routes, it will automatically speed up website speed.
php artisan route:cache
We need also to create a cache file for config. Laravel config load config from the config cache file.
php artisan config:cache
I Hope, it will help you to optimize your laravel website.
If you change or update the config file, you need to clear the config cache using the command PHP artisan config:clear.