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