Template
peserta-danuar
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\HasOne;
|
||||
|
||||
class MsDoctorHealthService extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
/**
|
||||
* Get the user associated with the doctor_healthcare_service
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasOne
|
||||
*/
|
||||
public function msDoctor(): HasOne
|
||||
{
|
||||
return $this->hasOne(MsDoctor::class, 'foreign_key', 'local_key');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the user associated with the DoctorHealthService
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasOne
|
||||
*/
|
||||
public function msHealthcareService(): HasOne
|
||||
{
|
||||
return $this->hasOne(MsHealthcareService::class, 'foreign_key', 'local_key');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user