protected function getUploadFileMethod(array $fields, $withFormRequest = false)
    {
        if (!$withFormRequest && Config::createMoveFileMethod() && $this->containsfile($fields)) {
            $stubName = 'controller-upload-method';
            if (Helpers::isNewerThanOrEqualTo()) {
                $stubName .= '-5.3';
            }

            return $this->getStubContent($stubName, $this->getTemplateName());
        }

        return '';
    }
protected function getUploadFileMethod(array $fields, $withFormRequest = false)
    {
        if (!$withFormRequest && Config::createMoveFileMethod() && $this->containsfile($fields)) {
            $stubName = 'controller-upload-method';
            if (Helpers::isNewerThanOrEqualTo()) {
                $stubName .= '-5.3';
            }

            return $this->getStubContent($stubName, $this->getTemplateName());
        }

        return '';
    }
protected function getUploadFileMethod ( array $ fields , $ withFormRequest = false ) { if ( ! $ withFormRequest && Config :: createMoveFileMethod ( ) && $ this -> containsfile ( $ fields ) ) { $ stubName = 'controller-upload-method' ; if ( Helpers :: isNewerThanOrEqualTo ( ) ) { $ stubName .= '-5.3' ; } return $ this -> getStubContent ( $ stubName , $ this -> getTemplateName ( ) ) ; } return '' ; }
Gets the method's stub that handels the file uploading.

@param array $fields
@param bool $withFormRequest

@return string
Gets the method s stub that handels the file uploading .