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),
    ]);


or

    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.
Was this page helpful?