fix bill seeder

This commit is contained in:
omair saleh
2022-02-22 01:44:20 +08:00
parent 154fca122e
commit f0bcd868af
+1 -1
View File
@@ -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()