protected function registerAttachment($name, $options)
	{
		$options = $this->mergeOptions($options);
		App::make('AttachmentValidator')->validateOptions($options);
		
		$attachment = App::make('Attachment', array('name' => $name, 'options' => $options));
		$attachment->setInstance($this);
		$this->attachedFiles[$name] = $attachment;
	}
protected function registerAttachment($name, $options)
	{
		$options = $this->mergeOptions($options);
		App::make('AttachmentValidator')->validateOptions($options);
		
		$attachment = App::make('Attachment', array('name' => $name, 'options' => $options));
		$attachment->setInstance($this);
		$this->attachedFiles[$name] = $attachment;
	}
protected function registerAttachment ( $ name , $ options ) { $ options = $ this -> mergeOptions ( $ options ) ; App :: make ( 'AttachmentValidator' ) -> validateOptions ( $ options ) ; $ attachment = App :: make ( 'Attachment' , array ( 'name' => $ name , 'options' => $ options ) ) ; $ attachment -> setInstance ( $ this ) ; $ this -> attachedFiles [ $ name ] = $ attachment ; }
Register an attachment type.
and add the attachment to the list of attachments to be processed during saving.

@param  string $name
@param  array $options
@return mixed
Register an attachment type . and add the attachment to the list of attachments to be processed during saving .