Laravel Eloquent object, longtext being truncated
问题 I've using Laravel, loading a db row into an Eloquent object. One of the columns is longtext, a JSON encoded array > 2 million characters long. The original error I was getting was json_decode failing on this column's value. I tested in tinker. Simplified test code: $item = Item::find(1); echo $item->long_text_field; var_dump(json_decode($item->long_text_field)); echo strlen($item->long_text_field); On my local vagrant instance this shows the correct values. ...long json array in text, same