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

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

Add whole directory of your app to windows defender Exclusions. You can also move your projects in project directory and add projects to exclusion.