Ejemplo n.º 1
0
 public function getConnectionName()
 {
     return DatabaseConnection::systemConnectionName();
 }
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Schema::connection(DatabaseConnection::systemConnectionName())->dropIfExists('websites');
 }
Ejemplo n.º 3
0
 public function getConnectionName()
 {
     return DatabaseConnection::tenantConnectionName();
 }
Ejemplo n.º 4
0
 protected function runMigrations()
 {
     foreach (config('hyn.packages', []) as $name => $package) {
         if (class_exists(array_get($package, 'service-provider'))) {
             $this->call('vendor:publish', ['--provider' => array_get($package, 'service-provider'), '-n']);
         }
     }
     $this->call('migrate', ['--database' => DatabaseConnection::systemConnectionName(), '-n']);
 }