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