Select field with relationship - exclude current record from options
Using the Forms\Components\Select with ->relationship(...), is it possible to exclude current record from the list?
2 Replies
yes, the 3rd parameter of the relationship method accepts a callback to modify the query.