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 4565bfc3c931..ae200d7c022b 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(); }