public function get_answers_ids_by_qid_array($q_id_array) { $answers = count(Answers::whereIn('question_id', $q_id_array)->get()); return $answers; }