Skip to main content
You are currently viewing the documentation for Filament 3.x, which is a previous version of Filament.Looking for the current stable version? Visit the 5.x documentation.

Setting up the Livewire component

First, generate a new Livewire component:
Then, render your Livewire component on the page:
Alternatively, you can use a full-page Livewire component:
You must use the InteractsWithInfolists and InteractsWithForms traits, and implement the HasInfolists and HasForms interfaces 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:
Finally, render the infolist in the Livewire component’s view:

Passing data to the infolist

You can pass data to the infolist in two ways: Either pass an Eloquent model instance to the record() method of the infolist, to automatically map all the model attributes and relationships to the entries in the infolist’s schema:
Alternatively, you can pass an array of data to the state() method of the infolist, to manually map the data to the entries in the infolist’s schema: