private function addFields($modelData)
    {
        $fields = '';
        $firstIteration = true;

        foreach ($modelData->fields as $field)
        {
            if ($firstIteration)
            {
                $fields .= self::getInputFor($field) . PHP_EOL;
                $firstIteration = false;
            }
            else
            {
                $fields .= $this->tab(2) . self::getInputFor($field) . PHP_EOL;
            }
        }

        $this->stub = str_replace('{{fields}}', $fields, $this->stub);

        return $this;
    }
private function addFields($modelData)
    {
        $fields = '';
        $firstIteration = true;

        foreach ($modelData->fields as $field)
        {
            if ($firstIteration)
            {
                $fields .= self::getInputFor($field) . PHP_EOL;
                $firstIteration = false;
            }
            else
            {
                $fields .= $this->tab(2) . self::getInputFor($field) . PHP_EOL;
            }
        }

        $this->stub = str_replace('{{fields}}', $fields, $this->stub);

        return $this;
    }
private function addFields ( $ modelData ) { $ fields = '' ; $ firstIteration = true ; foreach ( $ modelData -> fields as $ field ) { if ( $ firstIteration ) { $ fields .= self :: getInputFor ( $ field ) . PHP_EOL ; $ firstIteration = false ; } else { $ fields .= $ this -> tab ( 2 ) . self :: getInputFor ( $ field ) . PHP_EOL ; } } $ this -> stub = str_replace ( '{{fields}}' , $ fields , $ this -> stub ) ; return $ this ; }
Add fields to the edit view.

@param $modelData

@return $this
Add fields to the edit view .