protected function getFillables($stub, array $fields)
    {
        $fillables = [];
        $indentCount = $this->getIndent($stub, $this->getTemplateVariable('fillable'));
        $indent = $this->Indent($indentCount - $this->backspaceCount);
        foreach ($fields as $field) {
            if ($field->isOnFormView) {
                $fillables[] = sprintf("%s'%s'", $indent, $field->name);
            }
        }

        return $this->makeArrayString($fillables, $indentCount - $this->backspaceCount - 4);
    }
protected function getFillables($stub, array $fields)
    {
        $fillables = [];
        $indentCount = $this->getIndent($stub, $this->getTemplateVariable('fillable'));
        $indent = $this->Indent($indentCount - $this->backspaceCount);
        foreach ($fields as $field) {
            if ($field->isOnFormView) {
                $fillables[] = sprintf("%s'%s'", $indent, $field->name);
            }
        }

        return $this->makeArrayString($fillables, $indentCount - $this->backspaceCount - 4);
    }
protected function getFillables ( $ stub , array $ fields ) { $ fillables = [ ] ; $ indentCount = $ this -> getIndent ( $ stub , $ this -> getTemplateVariable ( 'fillable' ) ) ; $ indent = $ this -> Indent ( $ indentCount - $ this -> backspaceCount ) ; foreach ( $ fields as $ field ) { if ( $ field -> isOnFormView ) { $ fillables [ ] = sprintf ( "%s'%s'" , $ indent , $ field -> name ) ; } } return $ this -> makeArrayString ( $ fillables , $ indentCount - $ this -> backspaceCount - 4 ) ; }
Gets the formatted fillable line.

@param string $stub
@param string $fillables
@param array $fields

@return string
Gets the formatted fillable line .