list dan show appointment

This commit is contained in:
pajri
2023-02-10 16:55:24 +07:00
parent 6491f4d3e3
commit f309f4039c
26 changed files with 2867 additions and 4 deletions

View File

@@ -24,4 +24,14 @@ class Dokter extends Model
{
return $this->hasMany(JadwalDokter::class, 'nIDDokter', 'nID');
}
public function user()
{
return $this->belongsTo(User::class, 'nIDUser', 'nID');
}
public function speciality()
{
return $this->belongsTo(Speciality::class, 'nIDSpesialis', 'nID');
}
}