mathieutu
mathieutu
FFilament
Created by mathieutu on 1/31/2025 in #❓┊help
Weird behavior (component replaced by string) when livewire update.
I managed to fix the issue. The component needs to be in the layout and not in the view (which was my case). I can't explain why it changes anything, but I'm no Livewire expert at all... 😕
7 replies
FFilament
Created by mathieutu on 1/31/2025 in #❓┊help
Weird behavior (component replaced by string) when livewire update.
This is a plugin, which adds a basic dropdown. Here is the code.
7 replies
FFilament
Created by mathieutu on 1/31/2025 in #❓┊help
Weird behavior (component replaced by string) when livewire update.
Actually, it's not linked to the file upload at all, but with a livewire update:
7 replies
FFilament
Created by mathieutu on 1/31/2025 in #❓┊help
Weird behavior (component replaced by string) when livewire update.
FI, I opened an issue on the plugin repo, and the maintainer has no idea why it's behaving like that (Livewire dark magic?)
7 replies
FFilament
Created by mathieutu on 1/21/2025 in #❓┊help
Simple repeater and $get
No need to query the dB here. But just to have the same result when using $get and getState() on the same form. Good to know, thanks! But my project is well started, so I'll see and update when the new version will come.
6 replies
FFilament
Created by mathieutu on 1/21/2025 in #❓┊help
Simple repeater and $get
normal behavior
Yeah, but I find it weird to not have the same value from $get than when stored in DB or passed in as default.
finally get into filament
Not without pain, I'm afraid 😅
6 replies
FFilament
Created by mathieutu on 12/5/2024 in #❓┊help
Replicate with relationship repeater updates original relation records but doesn't create new ones
@toeknee not sure to have understood. When looking at the executed queries, we clearly see that: - A query is made to update the previous items (children). I think it's not linked to the ReplicateAction, but the Repeater. - No new items are created. The new invoice (parent) has no items at all.
8 replies
FFilament
Created by mathieutu on 12/5/2024 in #❓┊help
Replicate with relationship repeater updates original relation records but doesn't create new ones
Pretty basic actually:
Tables\Actions\ReplicateAction::make()->form(fn (Form $form) => static::form($form)->columns(2))
Tables\Actions\ReplicateAction::make()->form(fn (Form $form) => static::form($form)->columns(2))
And the form contains the repeater
Forms\Components\Repeater::make('items')
->columnSpanFull()
->relationship()
->columns(3)
->schema([
...
Forms\Components\Repeater::make('items')
->columnSpanFull()
->relationship()
->columns(3)
->schema([
...
8 replies
FFilament
Created by mathieutu on 12/5/2024 in #❓┊help
Replicate with relationship repeater updates original relation records but doesn't create new ones
Thanks for the answer. My goal is to not touch the current records, but to create new ones. By submitting the action, the original relationship items are updated, but not created at all.
8 replies
FFilament
Created by mathieutu on 11/22/2024 in #❓┊help
Computed state in form fields.
Yep, but it's not handy when you play with a lot of fields. I'm used to modern frontend framework like React, Vue and Svelte, where you can derive your state from other fields easily. The Placeholder component is working well, but it would be great to have that to all components. For a select you can compute the options easily, why not for its state?
4 replies
FFilament
Created by Gandalf on 5/29/2024 in #❓┊help
Replicate action: load form instead of save
Actually, you can do that directly with the ReplicateAction:
Tables\Actions\ReplicateAction::make()->form(fn (Form $form) => static::form($form)->columns(2))
Tables\Actions\ReplicateAction::make()->form(fn (Form $form) => static::form($form)->columns(2))
I don't understand why Filament does not provide the form by default. It may be an issue.
4 replies