create accessor

This commit is contained in:
2025-11-26 16:13:55 +03:30
parent 8fba75a684
commit fb932937dc
5 changed files with 25 additions and 4 deletions

View File

@@ -69,4 +69,25 @@ class Harim extends Model
->latestOfMany()
->value('expert_description');
}
protected function forbiddenArea(): Attribute
{
return Attribute::make(
get: fn($value) => json_decode($value)
);
}
protected function finalArea(): Attribute
{
return Attribute::make(
get: fn($value) => json_decode($value)
);
}
protected function finalPlan(): Attribute
{
return Attribute::make(
get: fn($value) => json_decode($value)
);
}
}