Skip to content

Commit 314bf87

Browse files
committed
formatting'
1 parent 9a9f59f commit 314bf87

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php

+10
Original file line numberDiff line numberDiff line change
@@ -1322,6 +1322,16 @@ public function getAttributes()
13221322
return $this->attributes;
13231323
}
13241324

1325+
/**
1326+
* Get all of the current attributes on the model for an insert operation.
1327+
*
1328+
* @return array
1329+
*/
1330+
protected function getAttributesForInsert()
1331+
{
1332+
return $this->getAttributes();
1333+
}
1334+
13251335
/**
13261336
* Set the array of model attributes. No checking is done.
13271337
*

src/Illuminate/Database/Eloquent/Model.php

-10
Original file line numberDiff line numberDiff line change
@@ -989,16 +989,6 @@ protected function getKeyForSaveQuery()
989989
return $this->original[$this->getKeyName()] ?? $this->getKey();
990990
}
991991

992-
/**
993-
* Get all of the current attributes on the model for insert.
994-
*
995-
* @return array
996-
*/
997-
protected function getAttributesForInsert()
998-
{
999-
return $this->getAttributes();
1000-
}
1001-
1002992
/**
1003993
* Perform a model insert operation.
1004994
*

0 commit comments

Comments
 (0)