From 2d13b299ab699c51fc1b79e82e00dddc1d70f914 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Tue, 22 Feb 2022 01:45:26 +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 b39a1e28..13978553 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())->setAlias('bills')->transactions()); + return $this->hasManyDeepFromRelations($this->transactions(), (new Transaction)->setAlias('bills')->transactions()); } protected static function booted()