From e9c2ed062499938302099caaa9521924099cc69c Mon Sep 17 00:00:00 2001 From: raccoon254 Date: Fri, 17 May 2024 16:06:43 +0300 Subject: [PATCH] Deliveries relationships to the Order --- app/Models/Order.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Models/Order.php b/app/Models/Order.php index 88cdeee..10b4a45 100644 --- a/app/Models/Order.php +++ b/app/Models/Order.php @@ -30,4 +30,9 @@ public function payment(): HasOne { return $this->hasOne(Payment::class); } + + public function delivery(): HasMany + { + return $this->hasMany(Delivery::class); + } }