protected function replaceFieldName(&$stub, $name)
    {
        $stub = $this->strReplace('field_name', $name, $stub);
        $stub = $this->strReplace('field_name_cap', ucwords(camel_case($name)), $stub);

        return $this;
    }
protected function replaceFieldName(&$stub, $name)
    {
        $stub = $this->strReplace('field_name', $name, $stub);
        $stub = $this->strReplace('field_name_cap', ucwords(camel_case($name)), $stub);

        return $this;
    }
protected function replaceFieldName ( & $ stub , $ name ) { $ stub = $ this -> strReplace ( 'field_name' , $ name , $ stub ) ; $ stub = $ this -> strReplace ( 'field_name_cap' , ucwords ( camel_case ( $ name ) ) , $ stub ) ; return $ this ; }
Replaces the field name for the given stub.

@param  string  $stub
@param  string  $name

@return $this
Replaces the field name for the given stub .