I think your mutator needs to look like this
public function setEmailJsonAttribute($value)
{
$this->attributes['email_json'] = json_encode($value, JSON_UNESCAPED_UNICODE);
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community