How can I Increase memory limit of Laravel Project
I am trying to start up login and registeration panel using auth , php artisan make:auth wasn't working so I used
composer require laravel/ui
And this was the result
Using version ^3.2 for laravel/ui
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/DependencyResolver/Solver.php on line 223
Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/DependencyResolver/Solver.php on line 223
Check https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors for more info on how to handle out of memory errors.
I later then ran
composer self-update
which updated successfully but after that, I went back to try
composer require laravel/ui
And it still gave me that memory error. Please guys I seriously need solutions urgently I'm pleading.
@david orizu What version of Composer are you using? The last few versions of Composer 1.x got really bad for memory management, and don’t think I’ve had any issues with Composer 2.x.
If not already, try updating to Composer 2:
composer self-update --stable
And then run composer --version to check you’re using 2.x. Then try installed laravel/ui again.