laravelでAuthを導入しようと下記コマンドを実行
composer require laravel/ui:2.2
すると下記エラーが出る
Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleWatchGraph.php on line 52
Check https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors for more info on how to handle out of memory errors
どうやらメモリーが足りず実行できないよう。
laravel/uiに限らずcomposer requireを実行しようとするとこうなる。
解決方法
COMPOSER_MEMORY_LIMIT=-1 composer 〇〇
これで一時的にメモリを確保できるようだ。