How to optimize Laravel website speed up to 45%

Hello, In this tutorial, I am showing you, how to optimize your laravel website and increase website speed. Let's see

Route Cache:

We need to create caching for routes. After caching laravel routes, it will automatically speed up website speed.

php artisan route:cache


Config 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.

Related Post