You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHP Fatal error: Allowed memory size of 2097152000 bytes exhausted (tried to allocate 20480 bytes) in /
var/www/html/vendor/sofa/hookable/src/Hookable.php on line 261
PHP Fatal error: Allowed memory size of 2097152000 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/vendor/codeception/codecep
tion/src/Codeception/Subscriber/ErrorHandler.php on line 96
I was really stumped, but when I fetched the model again, everything worked fine:
The text was updated successfully, but these errors were encountered:
jsdtaylor
changed the title
Memory leak when calling toArray() on a saved model
Memory leak when calling toArray() on a saved Mappable model
Feb 14, 2018
Laravel v5.5.34
Eloquence v5.5.1
When writing some API tests for a mapped model, I decided to:
When calling
$model->toArray()
I get OOM errors every time:I was really stumped, but when I fetched the model again, everything worked fine:
The text was updated successfully, but these errors were encountered: