From d7009f5072ccad205eff99f729bca395512e9a59 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 6 Aug 2021 10:49:51 +1000 Subject: [PATCH] Add Zelle Payment Type --- .../migrations/2021_08_05_235942_add_zelle_payment_type.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/database/migrations/2021_08_05_235942_add_zelle_payment_type.php b/database/migrations/2021_08_05_235942_add_zelle_payment_type.php index 4565bfc3c..ae200d7c0 100644 --- a/database/migrations/2021_08_05_235942_add_zelle_payment_type.php +++ b/database/migrations/2021_08_05_235942_add_zelle_payment_type.php @@ -4,6 +4,7 @@ use App\Models\PaymentType; use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; +use Illuminate\Database\Eloquent\Model; class AddZellePaymentType extends Migration { @@ -14,11 +15,14 @@ class AddZellePaymentType extends Migration */ public function up() { + Model::unguard(); + $pt = PaymentType::where('name', 'Zelle')->first(); if(!$pt){ $payment_type = new PaymentType(); + $payment_type->id = 33; $payment_type->name = 'Zelle'; $payment_type->save(); }