You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Weirdly its still using the title() method to display the label.. (which is good for me) but without the options label it just spits an error out (its trying to assign the string (label) rather than id on save).
I'm using 1.9 .. previously was 1.8 I believe
The text was updated successfully, but these errors were encountered:
Hey I have a Room model and resource. It has a column value of "name"
The way I'm calling the code actually doesnt use the "name" column but the "title()" set on the room resource:
This code below was working fine for me until I updated:
BelongsToManyField::make('Rooms', 'rooms', Room::class),
However on the latest update I now have to do the following:
BelongsToManyField::make('Rooms', 'rooms', Room::class)->optionsLabel('name'),
Weirdly its still using the title() method to display the label.. (which is good for me) but without the options label it just spits an error out (its trying to assign the string (label) rather than id on save).
I'm using 1.9 .. previously was 1.8 I believe
The text was updated successfully, but these errors were encountered: