Hide form field in relation manager create modal
I am reusing a resource's form in a relation manager (e.g.
return UserResource::form($form)) and I want to hide a field when the form is being rendered in the relation manager modal, but not in the normal create user page. I can't find any way to do that using the visible function, the operation is create in both views. any tips?