belongsTo(Address::class, "addressId", "id"); } public function user() { return $this->belongsTo(User::class, "userId", "uuid"); } public function products() { return $this->belongsToMany(Product::class, "orderProduct", "orderId" ,"productId")->withPivot("quantity"); } }