Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating a model empties my BelongsToMany field #98

Open
1stevengrant opened this issue Oct 1, 2021 · 0 comments
Open

Updating a model empties my BelongsToMany field #98

1stevengrant opened this issue Oct 1, 2021 · 0 comments

Comments

@1stevengrant
Copy link

1stevengrant commented Oct 1, 2021

I believe this is a recent thing but when I first create a new nova resource and select my relations, they are just fine and dandy.

However, if I make another edit to the resource, when I save, my BelongsToMany relationship vanishes.

Defined as so:

BelongsToManyField::make('Authors', 'authors', 'App\Nova\Author')
                ->optionsLabel('full_name')
                ->rules('required')
                ->help('Who is featured in this video?'),

If I reassign the authors again, that works too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant