From f0bcd868afa0badab2ede7e4386bdd227049ddc8 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Tue, 22 Feb 2022 01:44:20 +0800 Subject: [PATCH] fix bill seeder --- app/Models/Booking.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Booking.php b/app/Models/Booking.php index e84c77aa..b39a1e28 100644 --- a/app/Models/Booking.php +++ b/app/Models/Booking.php @@ -102,7 +102,7 @@ class Booking extends AbstractModel implements Documentable, Transactionable */ public function bills(): hasManyDeep { - return $this->hasManyDeepFromRelations($this->transactions(), (new Transaction())->transactions()); + return $this->hasManyDeepFromRelations($this->transactions(), (new Transaction())->setAlias('bills')->transactions()); } protected static function booted()