| public function getStreet($building_name) | public function getStreet($building_name) | ||||
| { | { | ||||
| $data = array(); | $data = array(); | ||||
| $coverage = Coverage::where('building_name',$building_name)->get(); | |||||
| $coverage = Coverage::where('building_name',$building_name)->groupBy('street')->get(); | |||||
| if(!empty($coverage)){ | if(!empty($coverage)){ | ||||
| foreach ($coverage as $key => $c) { | foreach ($coverage as $key => $c) { | ||||
| array_push($data, array( | array_push($data, array( |