How return custom data on browse view layout #5335
Unanswered
alancarlosml
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Hi, |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Version information
Description
I have two BREADS: Gym BREAD and Teacher BREAD.
In Gym BREAD browse view I have created a custom action button. The function of this button is to list all teachers that belongs to Gym model. To do so, I have another table gym_teacher that stores those ids - a many to many relationship.
I would like to know how I extend index function in TeacherController to return only that teachers.
I have tried some things suggested in Slack but did not work.
Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
After clicking on the "Listar professores" button, all teachers belonging to that gym should be returned in Voyager browse layout view.
Screenshots
Beta Was this translation helpful? Give feedback.
All reactions