/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $dataAccess = new MedMng(); $terms = $dataAccess->getTerms(); return Response::json(array('error' => false, 'data' => $terms), 200); }