© 2026 Hedgehog Software, LLC

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

Livewire Form inside modal but with a different resource

Hi there,
I have been trying to work through this for a while now and can't seem to see anything in docs or discord. I have a pages resource, inside that form I have an action modal which I've called in a livewire view as per docs, but it's just rendering the same form from my pages resource again, instead of pulling in the one from my styling modal class. Is there a way to set the relationship in the extraItemActions?

This is my action:
->modalContent(function (array $arguments, Repeater $component, StylingModal $styling): View {

                                                $block_id = $component->getItemState($arguments['item']);
                                                $styling_data = $styling->getStyling($block_id['block_id']);
                                                
                                                return view('livewire.forms.pages.styling-modal', [
                                                    'block_id' => $block_id['block_id']
                                                ]);
                                            })
->modalContent(function (array $arguments, Repeater $component, StylingModal $styling): View {

                                                $block_id = $component->getItemState($arguments['item']);
                                                $styling_data = $styling->getStyling($block_id['block_id']);
                                                
                                                return view('livewire.forms.pages.styling-modal', [
                                                    'block_id' => $block_id['block_id']
                                                ]);
                                            })
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

Using a Livewire form inside a Filament Resource (simple)
FilamentFFilament / ❓┊help
3y ago
Access Livewire component data inside Resource form
FilamentFFilament / ❓┊help
15mo ago
Using Livewire inside a form
FilamentFFilament / ❓┊help
2y ago
Form inside Livewire Component:
FilamentFFilament / ❓┊help
17mo ago