diff --git a/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php b/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php index 459b14c73399..7d660905e393 100644 --- a/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php +++ b/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php @@ -1322,6 +1322,16 @@ public function getAttributes() return $this->attributes; } + /** + * Get all of the current attributes on the model for an insert operation. + * + * @return array + */ + protected function getAttributesForInsert() + { + return $this->getAttributes(); + } + /** * Set the array of model attributes. No checking is done. * diff --git a/src/Illuminate/Database/Eloquent/Model.php b/src/Illuminate/Database/Eloquent/Model.php index e8dea2327933..512d59eae10e 100644 --- a/src/Illuminate/Database/Eloquent/Model.php +++ b/src/Illuminate/Database/Eloquent/Model.php @@ -989,16 +989,6 @@ protected function getKeyForSaveQuery() return $this->original[$this->getKeyName()] ?? $this->getKey(); } - /** - * Get all of the current attributes on the model for insert. - * - * @return array - */ - protected function getAttributesForInsert() - { - return $this->getAttributes(); - } - /** * Perform a model insert operation. *