$patients_id = FollowUpQuestionsAfterSurgery:: orderBy('id' , 'desc') ->pluck("patient_id"); $patients = Paitent::whereIn("id" , $patients_id)->get()->->toArray(); return array_column($patients , "follow_up");