src/BaseRepositoryEloquent.php
public function saveMany($models)
    {
        // Convert to collection if array
        $models = is_array($models) ? collection($models) : $models;

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

        return $models;
    }
public function saveMany($models)
    {
        // Convert to collection if array
        $models = is_array($models) ? collection($models) : $models;

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

        return $models;
    }
public function saveMany ( $ models ) { // Convert to collection if array $ models = is_array ( $ models ) ? collection ( $ models ) : $ models ; foreach ( $ models as & $ model ) { $ model = $ this -> save ( $ model ) ; } return $ models ; }
Save multiple models.

@param  array|\Illuminate\Database\Eloquent\Collection  $models
@return \Illuminate\Database\Eloquent\Collection
Save multiple models .