Template
peserta-danuar
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\HasOne;
|
||||
|
||||
class HealthcareServiceVisitType extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
public function msHealthcareService(): HasOne
|
||||
{
|
||||
return $this->hasOne(MsHealthcareService::class, 'foreign_key', 'local_key');
|
||||
}
|
||||
|
||||
public function refVisitType(): HasOne
|
||||
{
|
||||
return $this->hasOne(RefVisitType::class, 'foreign_key', 'other_key');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user