Skip to content

BelongsToMany does not shows on edit form #6216

@9350999

Description

@9350999
  • Laravel Version: 10.43.0
  • Nova Version: v4.32.11
  • PHP Version: 8.2.13
  • Database Driver & Version: PostgreSQL v.14
  • Operating System and Version: MacOS 13.5
  • Browser type and version: Chrome: 121.0.6167.160 (Official Build) (arm64)
  • Reproduction Repository: https://github.com/9350999/belongsToMany

Description:

A field with the relationship BelongsToMany is only visible in the view form, but not in the edit form.

Detailed steps to reproduce the issue on a fresh Nova installation:

  1. Create two models with custom fields
  2. To connect them together through a relationship BelongsToMany
  3. Create a seeder and fill the database with the values of these models and create multiple connections between them
  4. Create 2 resources for them including the field BelongsToMany
  5. When opening the view form - related models will be visible in the table below the list element of the current model
  6. When opening the edit form - the field BelongsToMany is not displayed

###Screenshots and video
Screenshot 2024-02-16 at 18 54 05

Screenshot 2024-02-16 at 18 56 17
2024-02-16.18-52-56.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions