Reusable schema

Hello guys! I have a lengthy builder schema that I need to use for several resources in the admin. Is there a way for me to create a reusable component that incorporates this schema, allowing me to use it multiple times?
3 Replies
toeknee
toeknee2y ago
You could build a trait function and include the trait then reference the trait schema?
Dan Harrin
Dan Harrin2y ago
you can literally choose whatever method you want return the schema from a static method, invokable class, anything. it will work
Sander
SanderOP2y ago
I made a form-layout and put the schema in the getChildComponents() method and works now. thanks for the help, much appreciated!
Want results from more Discord servers?
Add your server