Laravel 使用原始字符串创建 table

Laravel create table with raw string

如何在 laravel 5.5 中 创建 一个 new table raw数据库字符串?

$createTableSqlString =
  "CREATE TABLE $newTableName (
      product_id INT(11) NOT NULL AUTO_INCREMENT,
      ...
    )
    COLLATE='utf8_general_ci'
    ENGINE=InnoDB
    AUTO_INCREMENT=1;";

我知道有一个 Illuminate\Support\Facades\Schema 用于制作新的 table,

Schema::connection('mysqlInvsys')->create(...);

但是我应该如何定义或给它原始字符串 DB::raw($createTableSqlString) 呢?我没有在 official doc.

中找到任何示例

Laravel 为 运行 原始 SQL 查询提供函数,如图 here.

对于table创作,可以使用DB::statement($createTableSqlString)