thedevdojo / voyager

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

Relationships not searchable #5773

Open shahburhan opened 1 year ago

shahburhan commented 1 year ago

Laravel version

9.52.4

PHP version

8.2

Voyager version

1.6

Database

MYSQL 8.0

Description

If you check a relationship column for browse and search using the relationship column, it results in the column(auto generated field name for the relationship) not found.

Steps to reproduce

  1. Create a bread.
  2. Add a relationship column
  3. Check it to browse
  4. Go to the bread page
  5. Select the column
  6. Input value
  7. Hit search

Expected behavior

Should filter the results based on the filtered relationship values.

Screenshots

image image

Additional context

No response

shahburhan commented 1 year ago

Possible fix: https://github.com/the-control-group/voyager/pull/5774