/** * Function to get the list of all the questions from the database based on interview ID * @param $interviewID * @return string */ public function getAllQuestions($interviewID) { $return = 'failure'; $interview = QuestionAnswer::where('interviewID', $interviewID)->orderBy('qOrder', 'asc')->get(); if (sizeof($interview) !== 0) { $return = $interview; } return $return; }