@@ -8,6 +8,14 @@ use Illuminate\Support\Facades\Schema;
class CreateTenantsTable extends Migration
{
+ /**
+ * Get the migration connection name.
+ */
+ public function getConnection(): ?string
+ {
+ return config('tenancy.database.central_connection');
+ }
+
/**
* Run the migrations.
*
@@ -8,6 +8,13 @@ use Illuminate\Support\Facades\Schema;
class CreateDomainsTable extends Migration