[WIP] Encounter
This commit is contained in:
27
app/Models/EncounterParticipant.php
Normal file
27
app/Models/EncounterParticipant.php
Normal 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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user