public function getBeneficios() { $beneficios = Beneficio::all(); $arra = array('data' => $beneficios->toArray()); return json_encode($arra); }