protected function duplicateAttachments($clone) {
		if (!$this->attachment || !method_exists($clone, 'getCloneableFileAttributes')) return;
		foreach($clone->getCloneableFileAttributes() as $attribute) {
			if (!$original = $clone->getAttribute($attribute)) continue;
			$clone->setAttribute($attribute, $this->attachment->duplicate($original));
		}
	}
protected function duplicateAttachments($clone) {
		if (!$this->attachment || !method_exists($clone, 'getCloneableFileAttributes')) return;
		foreach($clone->getCloneableFileAttributes() as $attribute) {
			if (!$original = $clone->getAttribute($attribute)) continue;
			$clone->setAttribute($attribute, $this->attachment->duplicate($original));
		}
	}
protected function duplicateAttachments ( $ clone ) { if ( ! $ this -> attachment || ! method_exists ( $ clone , 'getCloneableFileAttributes' ) ) return ; foreach ( $ clone -> getCloneableFileAttributes ( ) as $ attribute ) { if ( ! $ original = $ clone -> getAttribute ( $ attribute ) ) continue ; $ clone -> setAttribute ( $ attribute , $ this -> attachment -> duplicate ( $ original ) ) ; } }
Duplicate all attachments, given them a new name, and update the attribute
value

@param  Illuminate\Database\Eloquent\Model $clone
@return void
Duplicate all attachments given them a new name and update the attribute value