Level 1
Probably because the "optimize-autoloader" flag is set true in Laravel's composer.json file.
github[dot]com/laravel/laravel/blob/11.x/composer.json#L61
So the autoloader optimization is performed automatically when calling "composer install"
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I was re-reading the deployment page in Laravel and noticed laravel[dot]com/docs/10.x/deployment#autoloader-optimization is missing in laravel[dot]com/docs/11.x/deployment#optimization. Is there any particular reason why it was removed?
New here. Can't attach link :'(
Please or to participate in this conversation.