Template
peserta-danuar
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\HasOne;
|
||||
|
||||
class TrPatientVisit extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = [
|
||||
"barcode",
|
||||
"registration_date",
|
||||
"service_date",
|
||||
"check_in_date",
|
||||
"check_in",
|
||||
"active",
|
||||
];
|
||||
|
||||
/**
|
||||
* Get the user associated with the patient_visit
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasOne
|
||||
*/
|
||||
public function MsDoctor(): HasOne
|
||||
{
|
||||
return $this->hasOne(MsDoctor::class, 'foreign_key', 'local_key');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user