protected function cloneRelations($model, $clone) {
		if (!method_exists($model, 'getCloneableRelations')) return;
		foreach($model->getCloneableRelations() as $relation_name) {
			$this->duplicateRelation($model, $relation_name, $clone);
		}
	}
protected function cloneRelations($model, $clone) {
		if (!method_exists($model, 'getCloneableRelations')) return;
		foreach($model->getCloneableRelations() as $relation_name) {
			$this->duplicateRelation($model, $relation_name, $clone);
		}
	}
protected function cloneRelations ( $ model , $ clone ) { if ( ! method_exists ( $ model , 'getCloneableRelations' ) ) return ; foreach ( $ model -> getCloneableRelations ( ) as $ relation_name ) { $ this -> duplicateRelation ( $ model , $ relation_name , $ clone ) ; } }
Loop through relations and clone or re-attach them

@param  Illuminate\Database\Eloquent\Model $model
@param  Illuminate\Database\Eloquent\Model $clone
@return void
Loop through relations and clone or re - attach them