diff --git a/src/Models/Authors.php b/src/Models/Authors.php index b343148..76c2897 100644 --- a/src/Models/Authors.php +++ b/src/Models/Authors.php @@ -49,6 +49,11 @@ protected function addUnknownAttributes(array $authors, int $counter): void if (! isset($this->list[$counter][$key]) || empty($this->list[$counter][$key])) { $this->list[$counter][$key] = $value; + continue; + } + + if ('first_name' === $key && strlen($this->list[$counter][$key]) < strlen($value)) { + $this->list[$counter][$key] = $value; } } }