/** * Lets the model consume the old one * @param Model $model The old model * @return $this */ public function consumeModel(Model $model) { $this->consumedModel = $model; $this->consumedModelProps = array_merge($model->attributesToArray(), $model->relationsToArray()); return $this; }