Fill a selectbox it's option on edit when loaded from relationmanagers
I'm trying to get a relation manager to fill a selectbox that is a couple of relations "away" from the record.
This is what I currently have;
Now the error I got is
{closure}(): Argument #1 ($record) must be of type App\Models\VendingMachineSlot, null given
(default item in the above code)
What I need it the selectbox to be filled (and show the item selected) that is found in $record->sellingPointProduct->product->id
in where $record
should be the "edit" model for the selected relation manager object.
Anyone an idea on what and how to do this? Thanks in advance! ❤️2 Replies
Anyone an idea on how to do this? 😇
Can you share the complete table from your relation manager? I think this is missing some context...