forked from eatvio/eatvio-infra
PHP Insights added
This commit is contained in:
@@ -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',
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user