title: Laravel Eloquent object, longtext being truncated
body: <p>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.</p>
  
  <p>I tested in tinker. Simplified test code:</p>
  
  <pre><code>$item = Item::find(1);
  echo $item-&gt;long_text_field;
  var_dump(json_decode($item-&gt;long_text_field));
  echo strlen($item-&gt;long_text_field);
  </code></pre>
  
  <p>On my local vagrant instance this shows the correct values. </p>
  
  <pre><code>...long json array in text, same as the value in the actual DB entry...
  ...var_dump of json array...
  2334040
  </code></pre>
  
  <p>However on my remote dev server I'm getting</p>
  
  <pre><code>...long json array truncated in the middle...
  NULL
  1048576
  </code></pre>
  
  <p>Obviously the json_decode is failing because the string is truncated. </p>
  
  <p>It truncates at a piece like this</p>
  
  <pre><code>"Eff Date":"1\”
  </code></pre>
  
  <p>Which should be</p>
  
  <pre><code>"Eff Date":"1\/30\/14 16:13”
  </code></pre>
  
  <p>There's a lot of escaped slashes like that in the longtext, and no strange characters at that point I can see. Does anyone have an idea why this text would truncate like that on one server and not another?</p>