File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
src/Illuminate/Database/Eloquent Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff 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 *
Original file line number Diff line number Diff 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 *
You can’t perform that action at this time.
0 commit comments