© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
1 reply
tjarrettjhu

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.
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Calling livewire component from xdata
FilamentFFilament / ❓┊help
17mo ago
Opening modal from Livewire Component
FilamentFFilament / ❓┊help
2y ago
Redirect from Livewire component boot()
FilamentFFilament / ❓┊help
2y ago
Update Livewire component from Select
FilamentFFilament / ❓┊help
2y ago