diff --git a/app/Models/Benefit.php b/app/Models/Benefit.php index d18ecf30..4cdaebf8 100644 --- a/app/Models/Benefit.php +++ b/app/Models/Benefit.php @@ -132,6 +132,11 @@ class Benefit extends Model "Show Benefit Value" => 'show_benefit_value', ]; + public function setAreaLimitAttribute($value) + { + $this->attributes['area_limit'] = $value ? $value : null; + } + public function setPrePostTreatmentAttribute($value) { $this->attributes['pre_post_treatment'] = empty($value) ? null : ($value == 'Y');