protected function getFillablesFromString($stub, $fillablesString)
    {
        $columns = Helpers::removeEmptyItems(explode(',', $fillablesString), function ($column) {
            return trim(Helpers::removeNonEnglishChars($column));
        });

        $fillables = [];
        $indentCount = $this->getIndent($stub, $this->getTemplateVariable('fillable'));
        $indent = $this->Indent($indentCount - $this->backspaceCount);

        foreach ($columns as $column) {
            $fillables[$column] = sprintf("%s'%s'", $index, $column);
        }

        return $this->makeArrayString($fillables, $indentCount - $this->backspaceCount - 4);
    }
protected function getFillablesFromString($stub, $fillablesString)
    {
        $columns = Helpers::removeEmptyItems(explode(',', $fillablesString), function ($column) {
            return trim(Helpers::removeNonEnglishChars($column));
        });

        $fillables = [];
        $indentCount = $this->getIndent($stub, $this->getTemplateVariable('fillable'));
        $indent = $this->Indent($indentCount - $this->backspaceCount);

        foreach ($columns as $column) {
            $fillables[$column] = sprintf("%s'%s'", $index, $column);
        }

        return $this->makeArrayString($fillables, $indentCount - $this->backspaceCount - 4);
    }
protected function getFillablesFromString ( $ stub , $ fillablesString ) { $ columns = Helpers :: removeEmptyItems ( explode ( ',' , $ fillablesString ) , function ( $ column ) { return trim ( Helpers :: removeNonEnglishChars ( $ column ) ) ; } ) ; $ fillables = [ ] ; $ indentCount = $ this -> getIndent ( $ stub , $ this -> getTemplateVariable ( 'fillable' ) ) ; $ indent = $ this -> Indent ( $ indentCount - $ this -> backspaceCount ) ; foreach ( $ columns as $ column ) { $ fillables [ $ column ] = sprintf ( "%s'%s'" , $ index , $ column ) ; } return $ this -> makeArrayString ( $ fillables , $ indentCount - $ this -> backspaceCount - 4 ) ; }
Gets the fillable string from a given raw string.

@param string $stub
@param string $fillablesString

@return string
Gets the fillable string from a given raw string .