I have hit the error
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
While trying the code:
composer require laravel/passport
in my laravel project.
I have tried following the instructions in the link but I am unable to increase my memory limit because I cannot find the file php.ini in my /etc/ directory. I can only find php.ini.default and I have increased the memory limit there to 900MB. I have restarted apache for the new configuration to reflect but the limit still shows 128MB which is what it has always shown in when I run the command:
php -r "echo ini_get('memory_limit').PHP_EOL;"
How can I get this fixed? My php version is 7.3.9
I must also mention that the issue I have is peculiar to a particular project. I have been able to successfully run
composer require laravel/passport
in another project