Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Sushi.php
Browse files Browse the repository at this point in the history
gdebrauwer committed Feb 5, 2024
1 parent b0fb1e2 commit eb7b696
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sushi.php
Original file line number Diff line number Diff line change
@@ -136,7 +136,7 @@ public function migrate()
if (count($this->casts) > 0) {
foreach ($rows as $row) {
// If $casts are present, use Eloquent's "create" instead of a plain insert so they are used and applied...
static::forceCreate($row);
static::make()->setRawAttributes($row)->save();
}
} else {
foreach (array_chunk($rows, $this->getSushiInsertChunkSize()) ?? [] as $inserts) {

0 comments on commit eb7b696

Please sign in to comment.