An error occurred when installing Laravel Breeze using Composer.
composer require laravel/breeze --dev
The error returned
Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar:///usr/bin/composer/src/Composer/DependencyResolver/Solver.php on line 223
Laravel Framework 8.20.1 Docker version 20.10.0 Composer version 1.10.19
php -d memory_limit=-1 /usr/bin/composer require laravel/breeze --dev
By setting -d memory_limit = -1, it seems that commands can be executed with unlimited memory.
It was also mentioned in composer troubleshooting. Memory limit errors
It seems that it can be supported even if you create php.ini in the directory where the docker file of the php container is located and rewrite the setting
memory_limit = -1