Form Select, titleAttribute does not appear
I have the following tables:
zero_ones(id, data)
tests(id, zero_one_id [nullable and unique], data)
I created a resource for "Test" and in the select input, I specified to only bring zero_ones that are not yet related to a test.
When searching and relating it for the first time, it works, but when I go to edit an already related one, the titleAttribute does not appear, only the id does. I assume this is because it's not fetching the current or the same one. How can I retrieve the title of the currently selected one, or how should I handle this? Thank you in advance.
![$query->doesntHave('test')](https://cdn.answeroverflow.com/1279727520287297536/image.png)
![for the first time it works ok](https://cdn.answeroverflow.com/1279727520542887957/image1.png)
![When I go to edit, it now only shows the id](https://cdn.answeroverflow.com/1279727520811319306/image2.png)
![migrations](https://cdn.answeroverflow.com/1279727521151189013/SPOILER_migrations.png)
![models](https://cdn.answeroverflow.com/1279727521511772160/SPOILER_models.png)
0 Replies