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()