Fix Empty String to Null
This commit is contained in:
@@ -134,7 +134,7 @@ class Benefit extends Model
|
||||
|
||||
public function setPrePostTreatmentAttribute($value)
|
||||
{
|
||||
return empty($value) ? null : ($value == 'Y');
|
||||
$this->attributes['pre_post_treatment'] = empty($value) ? null : ($value == 'Y');
|
||||
}
|
||||
|
||||
public function getPrePostTreatmentAttribute($value)
|
||||
|
||||
Reference in New Issue
Block a user