protected function replaceFileUpload(&$stub, array $fields)
    {
        $code = $this->containsfile($fields) ? $this->getFileUploadAttribute($this->getTemplateName()) : '';

        return $this->replaceTemplate('upload_files', $code, $stub);
    }
protected function replaceFileUpload(&$stub, array $fields)
    {
        $code = $this->containsfile($fields) ? $this->getFileUploadAttribute($this->getTemplateName()) : '';

        return $this->replaceTemplate('upload_files', $code, $stub);
    }
protected function replaceFileUpload ( & $ stub , array $ fields ) { $ code = $ this -> containsfile ( $ fields ) ? $ this -> getFileUploadAttribute ( $ this -> getTemplateName ( ) ) : '' ; return $ this -> replaceTemplate ( 'upload_files' , $ code , $ stub ) ; }
It Replaces fieldUpload in the given stub.

@param string $stub
@param array $fields

@return $this
It Replaces fieldUpload in the given stub .