Set Braintree visible in the PaymentLibrariesSeeder

This commit is contained in:
Benjamin Beganović 2021-05-04 12:19:06 +02:00
parent bb0f8aff2c
commit c22bf5bd10
2 changed files with 2 additions and 4 deletions

View File

@ -14,9 +14,7 @@ class MakeBraintreeProviderVisible extends Migration
*/
public function up()
{
$gateway = Gateway::where('key', 'f7ec488676d310683fb51802d076d713')->first();
$gateway->visible = 1;
$gateway->save();
Gateway::where('id', 50)->update(['visible' => 1]);
}
/**

View File

@ -95,7 +95,7 @@ class PaymentLibrariesSeeder extends Seeder
Gateway::query()->update(['visible' => 0]);
Gateway::whereIn('id', [1,15,20,39,55])->update(['visible' => 1]);
Gateway::whereIn('id', [1,15,20,39,55,50])->update(['visible' => 1]);
Gateway::all()->each(function ($gateway) {
$gateway->site_url = $gateway->getHelp();