thedevdojo / voyager

Voyager - The Missing Laravel Admin
https://voyager.devdojo.com
MIT License
11.72k stars 2.67k forks source link

HasMany relation doesn't work #5825

Open SVVladymyr opened 6 months ago

SVVladymyr commented 6 months ago

Laravel version

9.0

PHP version

8.1.25

Voyager version

1.6.0

Database

MySQL 8.0

Description

I have added a hasMany relation to the Category model (a category - multiple courses). Screenshot from 2023-12-12 18-32-24 I can't select any course when I edit a category, I see a list courses only. Screenshot from 2023-12-12 18-34-10

Steps to reproduce

Add a hasMany relation and try to select multiple relations.

Expected behavior

The ability to select some courses when editing a category.

Screenshots

Screenshot from 2023-12-12 18-34-10 Screenshot from 2023-12-12 18-32-24

Additional context

No response