blueprint: belongsToMany Foreign UUID not working.

  • Laravel Version: 10.10
  • PHP Version: 8.1
  • Blueprint Version: 2.9
  • Platform: Windows

Issue:

The pivot table on a belongsToMany is not respecting UUID from the related models. Should be foreignUuid

image

draft.yaml:

models:
  Brand:
    uuid
    name: string index
    slug: string unique index
    logo: string nullable
    softDeletes
    relationships:
      belongsToMany: Product
  Product:
    uuid
    name: string index
    slug: unique index
    price: double:8,2
    softDeletes
    relationships:
      belongsToMany: Brand

About this issue

  • Original URL
  • State: closed
  • Created 6 months ago
  • Comments: 18 (2 by maintainers)

Commits related to this issue

Most upvoted comments

This PR addresses the issue.