We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7177fe commit 048df3dCopy full SHA for 048df3d
src/Database/Eloquent/FMModel.php
@@ -342,7 +342,9 @@ protected function performInsert(Builder $query)
342
if ($this->getIncrementing()) {
343
$query->createRecord();
344
// perform a refresh after the insert to get the generated primary key / ID and calculated data
345
- $this->refresh();
+ $this->setRawAttributes(
346
+ $this->findByRecordId($this->recordId)->attributes
347
+ );
348
}
349
350
// If the table isn't incrementing we'll simply insert these attributes as they
0 commit comments