api appointment store and show

This commit is contained in:
Muhammad Fajar
2022-11-07 17:03:39 +07:00
parent d8fbd6b396
commit d742e87285
7 changed files with 191 additions and 1 deletions

View File

@@ -89,4 +89,9 @@ class PractitionerRole extends Model
{
return $this->hasOneThrough(Person::class, Practitioner::class, 'person_id', 'id');
}
public function appointmentParticipantables()
{
return $this->morphMany(AppointmentParticipant::class, 'participantable');
}
}