File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
illuminate/Database/Eloquent Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1912,7 +1912,7 @@ public function getAttributes()
19121912 */
19131913 protected function getAttributesForInsert ()
19141914 {
1915- return $ this ->getAttributes ();
1915+ return $ this ->tmpOriginalBeforeAfterEvents = $ this -> getAttributes ();
19161916 }
19171917
19181918 /**
Original file line number Diff line number Diff line change @@ -1371,8 +1371,8 @@ protected function performInsert(Builder $query)
13711371 // If the table isn't incrementing we'll simply insert these attributes as they
13721372 // are. These attribute arrays must contain an "id" column previously placed
13731373 // there by the developer as the manually determined key for these models.
1374- if (empty ( $ attributes) ) {
1375- return true ;
1374+ if ([] === $ attributes ) {
1375+ return false ;
13761376 }
13771377
13781378 $ query ->insert ($ attributes );
You can’t perform that action at this time.
0 commit comments