Eloquent/Relations/HasOneOrMany.php
public function createMany(iterable $records)
    {
        $instances = $this->related->newCollection();

        foreach ($records as $record) {
            $instances->push($this->create($record));
        }

        return $instances;
    }
public function createMany(iterable $records)
    {
        $instances = $this->related->newCollection();

        foreach ($records as $record) {
            $instances->push($this->create($record));
        }

        return $instances;
    }
public function createMany ( iterable $ records ) { $ instances = $ this -> related -> newCollection ( ) ; foreach ( $ records as $ record ) { $ instances -> push ( $ this -> create ( $ record ) ) ; } return $ instances ; }
Create a Collection of new instances of the related model.

@param  iterable  $records
@return \Illuminate\Database\Eloquent\Collection
Create a Collection of new instances of the related model .