Skip to content

Commit 89dfb17

Browse files
committed
first or create update
1 parent c929209 commit 89dfb17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Eloquent/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public function firstOrCreate(array $attributes = [], array $values = [])
181181
return $instance;
182182
}
183183

184-
return $this->createOrFirst($attributes, $values);
184+
return $this->create(array_merge($attributes, $values));
185185
}
186186

187187

0 commit comments

Comments
 (0)