AdminPanelProvider
or panel configuration, register the Custom Fields plugin:
HasCustomFields
interface and use the UsesCustomFields
trait.
In your model (e.g., Product
), add the following:
CustomFieldsComponent
to your form schema.
In your resource class (e.g., ProductResource
), modify the form()
method:
InteractsWithCustomFields
trait to your resource’s ListRecords
page.
In your list records class (e.g., ListProducts
), add the trait:
ViewRecord
page, include the CustomFieldsInfolists
component:
CustomFieldsExporter
component: