add config tennant_master erahn

This commit is contained in:
Amirah
2024-02-20 09:43:02 +08:00
parent f91151b017
commit 95bd37da82
3 changed files with 9 additions and 1 deletions
+1
View File
@@ -61,6 +61,7 @@ $app->singleton(
$app->configure('app'); $app->configure('app');
$app->configure('tinker'); $app->configure('tinker');
$app->configure('tennant_master');
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
+7
View File
@@ -0,0 +1,7 @@
<?php
return [
'database' => env('TENNANT_MASTER_DB','master_erahn')
];
@@ -42,7 +42,7 @@ class AddColumnsToKomuditiTransaksi extends Migration
{ {
$online_arrahn_connection_array = array_filter(config('database.connections'), function($connection) { $online_arrahn_connection_array = array_filter(config('database.connections'), function($connection) {
if($connection['database'] === 'online_arrahn' || $connection['database'] === 'master_krk'){ if($connection['database'] === 'online_arrahn' || $connection['database'] === 'master_krk' || $connection['database'] === config('tennant_master.database')){
return true; return true;
} }