Skip to content

Commit

Permalink
formatting'
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Apr 13, 2021
1 parent 9a9f59f commit 314bf87
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 10 additions & 0 deletions src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
10 changes: 0 additions & 10 deletions src/Illuminate/Database/Eloquent/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 314bf87

Please sign in to comment.