Eloquent\Dialect\Json::getMutatedAttributes PHP Method

getMutatedAttributes() public method

Include the JSON attributes in the list of mutated attributes for a given instance.
public getMutatedAttributes ( ) : array
return array
    public function getMutatedAttributes()
    {
        $attributes = parent::getMutatedAttributes();
        $jsonAttributes = array_keys($this->jsonAttributes);
        return array_merge($attributes, $jsonAttributes);
    }