/** * Display a listing of the resource. * * @return Response */ public function index() { /* //TODO return '{ "data":[ { "description":"Não havia nenhum médico disponível", "type":0, "date":"2012-04-23T18:25:43", "position":{"lat":-20.9259488, "lng":-41.8702564} }, { "description":"Ambulância chegou depois de 1:00 esperando", "type":2, "date":"2012-04-23T18:25:43", "position":{"lat":-16.9259488, "lng":-41.8702564} }, { "description":"O hospital estava sem o remédio que eu precisava", "type":4, "date":"2012-04-23T18:25:43", "position":{"lat":-23.9259488, "lng":-48.8702564} } ] }'; */ $denuncias = \App\Denuncia::latest('data')->get(); return compact('denuncias'); }