title: Create array not object in laravel
body: <p>I want to pass all the car's service rate with an array not object. There are some cars and their service rate with specific destination is different. I want pass the service rate of destination with an array to later use it with onclick function.
  Here is what I am with now</p>
  <pre><code>$international = [];$i= 0;
  foreach($fleets as $fleet){
    foreach($fleet as $flee){
      foreach($flee-&gt;serviceRate as $service){
        if($service-&gt;destination == 'International Drive/Sea World'){
           $international = Arr::add($international, $i, $service-&gt;rate);
           $i++;
        }
      }
    }
  }
  </code></pre>
  <p>This is returning me an object. I tried array_push, doesn't work. I tried $international-&gt;toarray() doesn't work. How can I create an array not object?</p>