[Solved] Composer require / Generating optimized autoload files is very slow

Updated: 14th April 2024
Tags: php composer laravel windows10

Add the whole directory of your app to Windows Defender Exclusions. You can also move your projects in the project directory and add projects to exclusion.

If you want even more speed and have SSD, you can move that project to SSD and then add to Windows Defender exclusions.