Getting State From Livewire Component

What is the correct way to get data or state out of a Livewire Component that I am using in a Filament Form? For example, if I have something like this:
return $form
->schema([
Forms\Components\Livewire::make(UserLdapLookup::class),
]);
return $form
->schema([
Forms\Components\Livewire::make(UserLdapLookup::class),
]);
or
protected function getHeaderActions(): array
{
return [
\Filament\Actions\Action::make('ldap')
->label('LDAP Lookup')
->form([
Forms\Components\Livewire::make(UserLdapLookup::class),
])
->action(function() {

})
];
}
protected function getHeaderActions(): array
{
return [
\Filament\Actions\Action::make('ldap')
->label('LDAP Lookup')
->form([
Forms\Components\Livewire::make(UserLdapLookup::class),
])
->action(function() {

})
];
}
My component stores it's state in $data. It uses a Filament form and a Infolist to display the data.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server