33 lines
805 B
PHP
33 lines
805 B
PHP
<?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');
|
|
}
|
|
}
|