src/Eloquent/BaseRepository.php
public function saveMany(ArrayAccess $models)
    {
        //transform to collection
        if(!$models instanceof Collection){
            $models = collect($models);
        }

        foreach ($models as $model) {
            $this->save($model);
        }

        return $models;
    }
public function saveMany(ArrayAccess $models)
    {
        //transform to collection
        if(!$models instanceof Collection){
            $models = collect($models);
        }

        foreach ($models as $model) {
            $this->save($model);
        }

        return $models;
    }
public function saveMany ( ArrayAccess $ models ) { //transform to collection if ( ! $ models instanceof Collection ) { $ models = collect ( $ models ) ; } foreach ( $ models as $ model ) { $ this -> save ( $ model ) ; } return $ models ; }
Persist many models

@param ArrayAccess $models
@return Collection
@throws StoreFailedRepositoryException
Persist many models