public static function getLastAppointment($patient_id) { return array(Appointment::order('time', 'desc')->where('patient_id', $patient_id)->first()); }