1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Activate GoCardless w/ migration

This commit is contained in:
Benjamin Beganović 2021-09-28 18:01:42 +02:00
parent 8ae1d86f80
commit d814216121

View File

@ -0,0 +1,32 @@
<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2021. Invoice Ninja LLC (https://invoiceninja.com)
*
* @license https://opensource.org/licenses/AAL
*/
use App\Models\Gateway;
use Illuminate\Database\Migrations\Migration;
class ActivateGocardlessPaymentDriver extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
$gateway = Gateway::find(52);
if ($gateway) {
$gateway->visible = true;
$gateway->save();
}
}
}