Level 75
Behind the scene it runs:
php artisan config:cache
php artisan route:cache
https://laravel.com/docs/9.x/deployment#optimizing-configuration-loading https://laravel.com/docs/9.x/deployment#optimizing-route-loading
3 likes
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'm trying to understand what does php artisan optimize command do in Laravel
Behind the scene it runs:
php artisan config:cache
php artisan route:cache
https://laravel.com/docs/9.x/deployment#optimizing-configuration-loading https://laravel.com/docs/9.x/deployment#optimizing-route-loading
Please or to participate in this conversation.