protected function replaceFieldRequired(&$stub, $required)
    {
        $stub = $this->strReplace('required_field', $this->getFieldRequired($required), $stub);

        return $this;
    }
protected function replaceFieldRequired(&$stub, $required)
    {
        $stub = $this->strReplace('required_field', $this->getFieldRequired($required), $stub);

        return $this;
    }
protected function replaceFieldRequired ( & $ stub , $ required ) { $ stub = $ this -> strReplace ( 'required_field' , $ this -> getFieldRequired ( $ required ) , $ stub ) ; return $ this ; }
Replace the requiredField fo the given stub.

@param string $stub
@param string $required

@return $this
Replace the requiredField fo the given stub .