© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
4 replies
Jon Mason

calling method to get data

within the context of a form, what's the right way to get the data for this component? I get
Using $this when not in object context
Using $this when not in object context
when I try to call the
getOwners()
getOwners()
method I created.

  Tab::make('Contacts')
                        ->schema([
                            ContactCard::make('contacts')->items(function (Model $record) {
//I could just get the data here, but it seems messy to me.
                                return $this->getOwners();
                            }),
                        ]),
  Tab::make('Contacts')
                        ->schema([
                            ContactCard::make('contacts')->items(function (Model $record) {
//I could just get the data here, but it seems messy to me.
                                return $this->getOwners();
                            }),
                        ]),
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

get form data in after() method
FilamentFFilament / ❓┊help
3y ago
How to get data repeater in handleProcessCreation() method ?
FilamentFFilament / ❓┊help
2y ago
Action calling a method problem
FilamentFFilament / ❓┊help
2y ago
Live method is calling mine action
FilamentFFilament / ❓┊help
2y ago