Skip to content

Commit

Permalink
Deliveries relationships to the Order
Browse files Browse the repository at this point in the history
  • Loading branch information
Raccoon254 committed May 17, 2024
1 parent 3c11243 commit e9c2ed0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Models/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,9 @@ public function payment(): HasOne
{
return $this->hasOne(Payment::class);
}

public function delivery(): HasMany
{
return $this->hasMany(Delivery::class);
}
}

0 comments on commit e9c2ed0

Please sign in to comment.