Skip to content

Commit e262449

Browse files
committed
Allow lazy loading in migration
1 parent 78ca2bd commit e262449

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

backend/database/migrations/2025_11_07_153308_backfill_account_vat_settings.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

33
use HiEvents\DomainObjects\Enums\CountryCode;
4-
use HiEvents\DomainObjects\Enums\StripePlatform;
54
use HiEvents\Models\AccountStripePlatform;
65
use HiEvents\Models\AccountVatSetting;
76
use Illuminate\Database\Eloquent\Collection;
7+
use Illuminate\Database\Eloquent\Model;
88
use Illuminate\Database\Migrations\Migration;
99

1010
return new class extends Migration {
@@ -13,6 +13,8 @@
1313
*/
1414
public function up(): void
1515
{
16+
Model::preventLazyLoading(false);
17+
1618
if (!config('app.is_hi_events')) {
1719
return;
1820
}

0 commit comments

Comments
 (0)