pinpointzero
pinpointzero
FFilament
Created by pinpointzero on 10/14/2024 in #❓┊help
Multiple Filament tables on a Livewire component
I just wondered if there's a simple way around this yet? As opposed to using two separate components?
6 replies
FFilament
Created by pinpointzero on 10/9/2024 in #❓┊help
Automatic Filament ViewAction on Livewire component
I have a Filament table on a Livewire component. I want to be able to jump to the following URL: /users?id=2 and have the component instantiate, but also to have the ViewAction for that specific user to fire. This should be possible, but I just don't know how to go about it.
6 replies
FFilament
Created by pinpointzero on 10/7/2024 in #❓┊help
Spurious errors on ViewAction/EditAction upon saving.
Hey everyone, I hope you're all well. I have several Filament forms which are embedded within Livewire components, not panels. This was done under instruction. There are over 50 Livewire pages which contain embedded Filament PHP tables, of the form -
<div>
{{ $this->table }}
</div>
<div>
{{ $this->table }}
</div>
The tables and forms look well defined and are identical throughout the codebase. However, on three of the connected forms, when I attempt to click "view" as a ViewAction, I am getting the following error -
Call to a member function mutateStateForValidation() on array
Call to a member function mutateStateForValidation() on array
Also, when editing and attempting to save, I get this error -
Call to a member function callAfterStateUpdated() on array
Call to a member function callAfterStateUpdated() on array
Now, I know I'm doing something wrong. My model relationships are correct, and, my casts are correct. It must be something simple. If anyone has experienced this, please let me know how you resolved it. Thanks, and be safe, Darryl
2 replies
FFilament
Created by pinpointzero on 10/1/2024 in #❓┊help
ViewField Form error.
I have a form with a ViewField in it.
ViewField::make('users')
->columnSpan('full')
->label(label: 'Company Users')
->view('livewire.components.companies.company-users'),
ViewField::make('users')
->columnSpan('full')
->label(label: 'Company Users')
->view('livewire.components.companies.company-users'),
When saving, I get an error stating that users does not exist. Aside from the fact it does (in my Company model), I am unsure as to why - as a ViewField, that Filament is attempting to save the users. Am I getting something wrong with the the nomenclature?
6 replies
FFilament
Created by pinpointzero on 6/12/2024 in #❓┊help
Filament table in Livewire component!
Hey everyone, I hope you're all well! Just a quick one. I have a Livewire component, and a Filament table within. It's all set-up and works well. However, even though I have a $form in the component, when I click on View/Edit, the modals are empty. Am I going wrong?! All help much appreciated!
6 replies