Fixes for site_url on gateways table

This commit is contained in:
David Bomba 2020-09-29 07:31:48 +10:00
parent 1a4d2a4460
commit 836e9a0ed4
2 changed files with 14 additions and 0 deletions

View File

@ -17,8 +17,11 @@ class UpdateGatewayTableVisibleColumn extends Migration
Gateway::query()->update(['visible' => 0]); Gateway::query()->update(['visible' => 0]);
Gateway::whereIn('id', [1,15,20,39])->update(['visible' => 1]); Gateway::whereIn('id', [1,15,20,39])->update(['visible' => 1]);
} }
/** /**
* Reverse the migrations. * Reverse the migrations.
* *

View File

@ -81,5 +81,16 @@ class PaymentLibrariesSeeder extends Seeder
Gateway::create($gateway); Gateway::create($gateway);
} }
} }
Gateway::query()->update(['visible' => 0]);
Gateway::whereIn('id', [1,15,20,39])->update(['visible' => 1]);
Gateway::all()->each(function ($gateway){
$gateway->site_url = $gateway->getHelp();
$gateway->save();
});
} }
} }