Files
aso/app/Models/EncounterParticipant.php
Server D3 Linksehat 1bf608b1ed Server 103 Commit
2024-07-18 16:05:33 +07:00

30 lines
522 B
PHP
Executable File

<?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',
'participantable_type',
'participantable_id'
];
public function encounter()
{
return $this->belongsTo(Encounter::class, 'encounter_id');
}
public function participantable()
{
return $this->morphTo();
}
}