0

I tried to install laravel cashier with the comand composer require laravel/cashier but after a while I've got this error

PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar://C:/composer/composer.phar/src/Composer/DependencyResolver/RuleWatchGraph.php on line 52

how can put I more memory available for this process, or solve this error?

Edit: my laptop memory is 8Gb

Santiago Ramirez
  • 167
  • 1
  • 3
  • 14

1 Answers1

0

You should increase your memory_limit directive, from php.ini or add this line in your script

ini_set("memory_limit", "256M");

EDIT Since it is composer, you can only edit php.ini directive. Anyway 1.5gb to install a lib is strange ( I though initially it was 160mb, my fault ) and it is not recommended to increase memory limit to GBs, try also to update your composer.

Sergio Rinaudo
  • 2,303
  • 15
  • 20