|
|
@ -28,7 +28,7 @@ class UserRelationBind extends Model |
|
|
|
|
|
|
|
|
public function setJsonDataAttribute($value) |
|
|
public function setJsonDataAttribute($value) |
|
|
{ |
|
|
{ |
|
|
$this->attributes['json_data'] = json_encode(json_decode($value, true)); |
|
|
|
|
|
|
|
|
$this->attributes['json_data'] = $value ? json_encode(json_decode($value, true)) : ''; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |