title: Laravel 5.4 array remove key index
body: <p>In my controller, this statement generates an array:</p>
  
  <pre><code>// sort the region collection by continent for faster access in front end
  $finalRegions = $regions-&gt;sortBy('continent_id');
  
  
  {  
     "0":{  
        "id":1,
        "name":"Alaska",
        "image_x":227,
        "image_y":117
     },
     "1":{  
        "id":5,
        "name":"Australian Antartic Territory",
        "image_x":1187,
        "image_y":1037
  ....
     }
  }
  </code></pre>
  
  <p>How do I remove the index from the resulting object, so it looks like this:</p>
  
  <pre><code>[  
     {  
        "id":1,
        "name":"Alaska",
        "image_x":227,
        "image_y":117
     },
     {  
        "id":5,
        "name":"Australian Antartic Territory",
        "image_x":1187,
        "image_y":1037
  ....
     }
  ]
  </code></pre>
  
  <p>This is stored in a field cast as <code>json</code> in the table class. </p>