P
Size: a a a
P
4
public function getSurveyorAttributes()
{
return $this->participants()->where('role', static::ROLE_SURVEYOR)->limit(1)->first();
}
EG
EG
AV
4
public function participants()
{
return $this->belongsToMany(User::class, 'assignment_participants')->withPivot('role');
}
public function surveyor()
{
return $this->participants()->where('role', static::ROLE_SURVEYOR)->limit(1);
}
AB
AV
AB
AB
AV
v
ПГ
AB
v
ПГ
ПГ
v
ИФ
P