Commit 314bf87 1 parent 9a9f59f commit 314bf87 Copy full SHA for 314bf87
File tree 2 files changed +10
-10
lines changed
src/Illuminate/Database/Eloquent
2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -1322,6 +1322,16 @@ public function getAttributes()
1322
1322
return $ this ->attributes ;
1323
1323
}
1324
1324
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
+
1325
1335
/**
1326
1336
* Set the array of model attributes. No checking is done.
1327
1337
*
Original file line number Diff line number Diff line change @@ -989,16 +989,6 @@ protected function getKeyForSaveQuery()
989
989
return $ this ->original [$ this ->getKeyName ()] ?? $ this ->getKey ();
990
990
}
991
991
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
-
1002
992
/**
1003
993
* Perform a model insert operation.
1004
994
*
You can’t perform that action at this time.
0 commit comments