Setting up the Livewire component
First, generate a new Livewire component:InteractsWithSchemas trait, and implement the HasSchemas interface on your Livewire component class:
Adding the infolist
Next, add a method to the Livewire component which accepts an$infolist object, modifies it, and returns it:
filament/infolists also includes the following packages:filament/actionsfilament/schemasfilament/support
HasActions interface and use the InteractsWithActions trait on your Livewire component class.If you are using any other Filament components in your infolist, make sure to install and integrate the corresponding package as well.Passing data to the infolist
You can pass data to the infolist in two ways: Either pass an Eloquent model instance to therecord() method of the infolist, to automatically map all the model attributes and relationships to the entries in the infolist’s schema:
state() method of the infolist, to manually map the data to the entries in the infolist’s schema: