src/BaseRepositoryEloquent.php
public function createMany(array $items)
    {
        $models = collection();

        foreach ($items as $item) {
            $models[] = $this->create($item);
        }

        return $models;
    }
public function createMany(array $items)
    {
        $models = collection();

        foreach ($items as $item) {
            $models[] = $this->create($item);
        }

        return $models;
    }
public function createMany ( array $ items ) { $ models = collection ( ) ; foreach ( $ items as $ item ) { $ models [ ] = $ this -> create ( $ item ) ; } return $ models ; }
Create and store multiple new models.

@param  array  $items
@return \Illuminate\Database\Eloquent\Collection
Create and store multiple new models .