private function replaceTableName(stdClass $scaffolderConfig, $modelName)
    {
        $tableName = isset($scaffolderConfig->tableName) && !empty($scaffolderConfig->tableName) ? $scaffolderConfig->tableName : $modelName . 's';

        $this->stub = str_replace('{{table_name}}', strtolower($tableName), $this->stub);

        return $this;
    }
private function replaceTableName(stdClass $scaffolderConfig, $modelName)
    {
        $tableName = isset($scaffolderConfig->tableName) && !empty($scaffolderConfig->tableName) ? $scaffolderConfig->tableName : $modelName . 's';

        $this->stub = str_replace('{{table_name}}', strtolower($tableName), $this->stub);

        return $this;
    }
private function replaceTableName ( stdClass $ scaffolderConfig , $ modelName ) { $ tableName = isset ( $ scaffolderConfig -> tableName ) && ! empty ( $ scaffolderConfig -> tableName ) ? $ scaffolderConfig -> tableName : $ modelName . 's' ; $ this -> stub = str_replace ( '{{table_name}}' , strtolower ( $ tableName ) , $ this -> stub ) ; return $ this ; }
Replace the table name.

@param \stdClass $scaffolderConfig
@param $modelName

@return $this
Replace the table name .