Patie
Patie
Explore posts from servers
FFilament
Created by Patie on 10/17/2024 in #❓┊help
Form relation state
Hi, first i dont want setModel() because i need process form data manually and dont want to save it automaticlly, i have Client model with morphTo ClientPersonProfile etc.. when i do Client::with('profile').. and then i do $this->form->fill($client); i see client fields in state filled ok = in state are only filled existing form fields (like email), BUT in profile state there is full profile = all columns/model properties, not only for existing fields in group.. its possible to do in way in profile group state will be only data for existing profile group fields? thank you 🙏
2 replies
FFilament
Created by Patie on 9/8/2024 in #❓┊help
Records count in table header
Hi, its possible to have current records count (init, but also after filtering or searching) in table header? I tried multiple ways, but without luck yet.
6 replies
FFilament
Created by Patie on 9/7/2024 in #❓┊help
OpenSearch/ElasticSearch
Hi, its possible to do searching,filtering and paginating without Scout on OpenSearch/ElasticSearch? How? Thank you!
8 replies
FFilament
Created by Patie on 4/4/2024 in #❓┊help
Table update after action
Hi, im using filament as livewire components without full panel. On user detail page I have user infolist component - there is section with headerActions (form for adding user documents) and user document table inside schema.
Section::make('Documents')
->id('documents')
->headerActions([
Action::make('Add document')
->form($this->userDocumentForm->schema())
->action(function (array $data, User $user) {
$this->userDocumentForm->action($data, $user);
})
])
->schema([
Livewire::make(UserDocumentTable::class, ['userId' => $this->user->id])->key('user-document-table'),
]),
Section::make('Documents')
->id('documents')
->headerActions([
Action::make('Add document')
->form($this->userDocumentForm->schema())
->action(function (array $data, User $user) {
$this->userDocumentForm->action($data, $user);
})
])
->schema([
Livewire::make(UserDocumentTable::class, ['userId' => $this->user->id])->key('user-document-table'),
]),
what is correct way to update user document table to show updated data after create (or edit/delete) in my case? thank you!
15 replies