Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Sep 11, 2020
1 parent b1e47e4 commit 69072c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Database/Eloquent/Factories/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ public function create($attributes = [], ?Model $parent = null)
public function createMany(iterable $records)
{
return new EloquentCollection(
array_map(function ($attribute) {
return $this->create($attribute);
array_map(function ($record) {
return $this->state($record)->create();
}, $records)
);
}
Expand Down

0 comments on commit 69072c7

Please sign in to comment.