protected function getAffirmMethod($withFormRequest, array $fields, $requestNamespace, $input)
    {
        if ($withFormRequest || Helpers::isNewerThanOrEqualTo('5.5')) {
            return '';
        }

        $stub = $this->getStubContent('controller-affirm-method');

        $this->replaceValidationRules($stub, $this->getValidationRules($fields))
            ->replaceFileValidationSnippet($stub, $this->getFileValidationSnippet($fields, $input, $this->requestVariable))
            ->replaceRequestFullName($stub, $requestNamespace);

        return $stub;
    }
protected function getAffirmMethod($withFormRequest, array $fields, $requestNamespace, $input)
    {
        if ($withFormRequest || Helpers::isNewerThanOrEqualTo('5.5')) {
            return '';
        }

        $stub = $this->getStubContent('controller-affirm-method');

        $this->replaceValidationRules($stub, $this->getValidationRules($fields))
            ->replaceFileValidationSnippet($stub, $this->getFileValidationSnippet($fields, $input, $this->requestVariable))
            ->replaceRequestFullName($stub, $requestNamespace);

        return $stub;
    }
protected function getAffirmMethod ( $ withFormRequest , array $ fields , $ requestNamespace , $ input ) { if ( $ withFormRequest || Helpers :: isNewerThanOrEqualTo ( '5.5' ) ) { return '' ; } $ stub = $ this -> getStubContent ( 'controller-affirm-method' ) ; $ this -> replaceValidationRules ( $ stub , $ this -> getValidationRules ( $ fields ) ) -> replaceFileValidationSnippet ( $ stub , $ this -> getFileValidationSnippet ( $ fields , $ input , $ this -> requestVariable ) ) -> replaceRequestFullName ( $ stub , $ requestNamespace ) ; return $ stub ; }
Gets the affirm method.

@param bool $withFormRequest
@param array $fields
@param string $requestNamespace
@param (ibject) $input

@return string
Gets the affirm method .