public function getLogDataAttribute($value) { if (presence($value) === null) { return []; } return unserialize($value); }