PHP Insights added

This commit is contained in:
Anatoliy Poloz
2023-12-18 14:51:58 +03:00
parent 31128488ac
commit 1b9998cdef
71 changed files with 1655 additions and 575 deletions

View File

@@ -124,13 +124,6 @@ class User extends Authenticatable implements MustVerifyEmail, Viewable
return $this->hasMany(UserAttachment::class);
}
protected function consultantState(): Attribute
{
return Attribute::make(
get: fn () => $this->consultant_request ? $this->consultant_request->request_state : 'incomplete',
);
}
public function author_of_plans(): BelongsToMany
{
return $this->belongsToMany(Plan::class, 'plan_author', 'user_id', 'plan_id');
@@ -225,4 +218,11 @@ class User extends Authenticatable implements MustVerifyEmail, Viewable
{
return $this->hasOne(ConsultantLegalEntity::class);
}
protected function consultantState(): Attribute
{
return Attribute::make(
get: fn () => $this->consultant_request ? $this->consultant_request->request_state : 'incomplete',
);
}
}