Global form field

Is it possible to somehow create a global form field that shows up in all resources that implement a specific interface och trait? So you don't need to add it manually to each. For example let's say we want to make multiple different CompanyResources such as EmployeeResource and ScheduleResource. Both of them needs a company field but you only want to add it once instead of always having to add it to each resource you make. What would be the best way to achieve this?
2 Replies
wyChoong
wyChoong9mo ago
whats the exact reason for doing this? it sounds like overcomplicating are you trying to avoid configuring the field repeatedly? what about a custom field that already configured and you just use that field?
toeknee
toeknee9mo ago
So you could do this with a trait I beleif, you would need to inheirt the form and loop the shcema if not exist add the field.