protected function cloneModel($model) {
		$exempt = method_exists($model, 'getCloneExemptAttributes') ?
			$model->getCloneExemptAttributes() : null;
		$clone = $model->replicate($exempt);
		if ($this->write_connection) $clone->setConnection($this->write_connection);
		return $clone;
	}
protected function cloneModel($model) {
		$exempt = method_exists($model, 'getCloneExemptAttributes') ?
			$model->getCloneExemptAttributes() : null;
		$clone = $model->replicate($exempt);
		if ($this->write_connection) $clone->setConnection($this->write_connection);
		return $clone;
	}
protected function cloneModel ( $ model ) { $ exempt = method_exists ( $ model , 'getCloneExemptAttributes' ) ? $ model -> getCloneExemptAttributes ( ) : null ; $ clone = $ model -> replicate ( $ exempt ) ; if ( $ this -> write_connection ) $ clone -> setConnection ( $ this -> write_connection ) ; return $ clone ; }
Create duplicate of the model

@param  Illuminate\Database\Eloquent\Model $model
@return Illuminate\Database\Eloquent\Model The new model instance
Create duplicate of the model