public function appointments_by_date() { $result = Appointment::whereBetween('appointment_date', [$this->start, $this->end])->with('lead')->get(); return $result; }