Laravel Issue #1 “Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 134217736 bytes) ”

--

The reason because you have a memory limit in ur php.ini so u have to configure it.
Below were the steps that will fix your bugs :
1. You have to know the memory limit of ur php.ini, just run the command :
>php -r “echo ini_get(‘memory_limit’).PHP_EOL;”

so it will display for the ex.

it was 128 M of memory limit and you have to change to -1

2. Find the location of ur php.ini, run the command :
> php — ini

it will display,

3. Open php.ini file, run the command :
> nano /Application/MAMP/bin/php/php7.3.8/conf/php.ini

just add a semicolon in front of ur last memory limit command and add below memory_limit = -1

That’s it, I hope it will fix ur issue tnx

--

--