예제 #1
0
 /**
  *
  * AJAX callback
  * Returns array of all markers in the system
  *
  * @return string json
  */
 public function onMarkersLoad()
 {
     $markers = Marker::all();
     return $markers->toJson();
 }
예제 #2
0
파일: Map.php 프로젝트: graker/mapmarkers
 /**
  * @return Collection of all markers
  */
 protected function loadMarkers()
 {
     $markers = Marker::all();
     return $markers;
 }