Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jan 20, 2020
1 parent 37a70fd commit 6553d59
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Illuminate/Database/Eloquent/FactoryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,9 @@ public function create(array $attributes = [])
*/
public function createMany(iterable $records)
{
$instances = array_map(function ($attribute) {
return (new $this->class)->newCollection(array_map(function ($attribute) {
return $this->create($attribute);
}, $records);

return new Collection($instances);
}, $records));
}

/**
Expand Down

0 comments on commit 6553d59

Please sign in to comment.