diff --git a/app/Models/PackingList.php b/app/Models/PackingList.php index 24565d9c..21b0d692 100644 --- a/app/Models/PackingList.php +++ b/app/Models/PackingList.php @@ -72,4 +72,12 @@ class PackingList extends AbstractModel implements Transportable, Steppable, Pac { return $this->BelongsToMany(PackingList::class, 'packing_list_owner', 'owner_packing_list_id', 'packing_list_id'); } + + /** + * @return MorphMany + */ + public function packingLists(): morphMany + { + return $this->morphMany(PackingList::class, 'owner'); + } }