使用這個插件的過程中,我想在遷移文件中指定不同的數(shù)據(jù)庫連接,但是這個插件需要怎么操作才能連接不同的數(shù)據(jù)庫呢?
$this->schema()->setConnection(Db::connection('mysql2'))->create('orders', function (Blueprint $table) { $table->id(); $table->timestamps(); });
好的感謝 我試試