$get('foo') return an id in a 1-n relationship field
Hi, I have three 1-n relationship field in my form and they return the id of the Resource selected even if I see the name in the select input. Is it possible to have another column instead of the id in this context ?
The alternative is to make requests to the DB with the id, but I'm really surprised there is no other way ...
Help would be really appreciated π
12 Replies
this might help.
Oh ok, I will try that thx π
π¬
I just want the acronym of the relationship value I have selected π₯²
have you loaded the model?
use App\Models\Sheet
Yes
But is it really possible to perform a relationship method on the record even if it haven't been saved ?
this should be used only for edit method
Ah ok so I have no choice to do db find() request with ids