Form Select relationship with custom search

hi. I want to implement the custom search to the form select component. How can I archive this?
I've tried to use the component relationship() with
modifyQueryUsing: ($query, $search)
callback function but no luck.

Context: for example, I have a product, which belongs to an order, and product also belongs to an category. I want to make a select field inside create/edit an order resource, with the functional search with product code, product name, and category's name for example.
Was this page helpful?