/** * Display a listing of the resource. * * @return Response */ public function index() { // //$biodata = BioData::all(); //return Response::json($biodata); $scholarship = Scholarship::all(); $biodata = BioData::all(); $highinst = HigherInst::all(); $profQualification = ProfQualifications::all(); $allApplicantData = new stdClass(); $allApplicantData->scholarship = $scholarship ? $scholarship->toArray() : null; $allApplicantData->bioData = $biodata ? $biodata->toArray() : null; $allApplicantData->higherInst = $highinst ? $highinst->toArray() : null; $allApplicantData->profQualification = $profQualification ? $profQualification->toArray() : null; //return Response::json($allApplicantData,200); return Response::json($allApplicantData, 200); }