title: How to read JSON array in Laravel 5.3
body: <p>I need to get latitude and longitude from this array:</p>
  
  <pre><code>AddressCollection {#237 ▼
  -addresses: array:1 [▼
  0 =&gt; Address {#232 ▼
    -coordinates: Coordinates {#233 ▼
      -latitude: 55.923431
      -longitude: 23.3490609
    }
    -bounds: Bounds {#234 ▶}
    -streetNumber: "18"
    -streetName: "Vilniaus gatvė"
    -subLocality: null
    -locality: "Šiauliai"
    -postalCode: "76258"
    -adminLevels: AdminLevelCollection {#235 ▶}
    -country: Country {#236 ▶}
    -timezone: null
  }
  ]
  }
  </code></pre>
  
  <p>Code in my controller: </p>
  
  <pre><code> $posts = Post::latest()-&gt;get();  
       Mapper::location('Lietuva')-&gt;map(['zoom' =&gt; 7, 'scrollWheelZoom'=&gt;false, 'marker'=&gt;false]); //A map is displayed in the index page
      foreach($posts as $post){
  
          $city = $post-&gt;city;
          $address = $post-&gt;address;
  
          $mark = app('geocoder')-&gt;geocode($city . $address)-&gt;get();
  
          dd($mark);
          //
          //THIS IS WHERE I NEED THOSE COODINATES
          //
          //For example $lat = $mark-&gt;coordinates.......
  
          //Mapper::marker($lat, $long); Make a marker for every address in the DB
      }
   return view('posts.index', compact('posts'));
  </code></pre>
  
  <p>Not sure if this will generate markers for my map, but i still have no idea how to get specific information from JSON array. 
  Thank you in advance</p>