src/Builders/MigrationBuilder.php
private function buildParts($template)
    {
        $camelName = Str::camel($this->name);
        $tableName = strtolower($camelName);
        $template  = str_replace([
            '$TABLENAME$',
            '$CLASS$',
            '$FIELDS$'
        ], [
            $tableName,
            $this->className,
            $this->buildFields()
        ], $template);

        return $template;
    }
private function buildParts($template)
    {
        $camelName = Str::camel($this->name);
        $tableName = strtolower($camelName);
        $template  = str_replace([
            '$TABLENAME$',
            '$CLASS$',
            '$FIELDS$'
        ], [
            $tableName,
            $this->className,
            $this->buildFields()
        ], $template);

        return $template;
    }
private function buildParts ( $ template ) { $ camelName = Str :: camel ( $ this -> name ) ; $ tableName = strtolower ( $ camelName ) ; $ template = str_replace ( [ '$TABLENAME$' , '$CLASS$' , '$FIELDS$' ] , [ $ tableName , $ this -> className , $ this -> buildFields ( ) ] , $ template ) ; return $ template ; }
Build migration template parts

@param $template

@return mixed
Build migration template parts