code: public function newModel()
      {
          $model = app()->make($this->modelClass);
  
          if (!$model instanceof Model) {
              throw new RepositoryException("Class {$this->modelClass} must be an instance of Illuminate\\Database\\Eloquent\\Model");
          }
  
          return $model;
      }
docs: Make a new empty model
  
  @return Model
  @throws \Exception