title: Laravel and Json, don't show the index of the array
body: <p>I'm using Laravel to return a JSON object and I can't find a way to delete the index of my array.</p>
  
  <p>My code :</p>
  
  <pre><code>&lt;?php
  
  class PlayerController extends BaseController {
  
  public function checkupdate()
  {   
  
      $datapack = DB::table('datapack')-&gt;first();        
  
      return Response::json(array(['datapack'=&gt;$datapack],'time' =&gt; date('Y-m-d H:i:s')),200);
  
  }
  }
  </code></pre>
  
  <p>which give me :</p>
  
  <pre><code>{
     "0":{
        "datapack":{
           "id":"FD524D0F-5732-44B7-AC46",
           "timeUpdated":1401184091
        }
     },
     "time":"2014-10-06 15:58:20"
  }
  </code></pre>
  
  <p>and I want something like this :</p>
  
  <pre><code>{          
        "datapack":{
           "id":"FD524D0F-5732-44B7-AC46",
           "timeUpdated":1401184091          
     },
     "time":"2014-10-06 15:58:20"
  }
  </code></pre>