[WIP] Encounter

This commit is contained in:
R
2023-03-16 14:27:53 +07:00
parent f65b28107c
commit 229908e492
15 changed files with 433 additions and 10 deletions

View File

@@ -0,0 +1,27 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class EncounterParticipant extends Model
{
use HasFactory;
public $fillable = [
'encounter_id',
'type',
];
public function encounter()
{
return $this->belongsTo(Encounter::class, 'encounter_id');
}
public function participantable()
{
return $this->morphTo();
}
}