© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•14mo ago•
1 reply
malebestia.

Dispatch open modal with parameters

https://filamentphp.com/docs/3.x/support/blade-components/modal#controlling-a-modal-from-javascript

hello everyone,
in dispatch, in addition to the id, is there a way to pass other parameters and reuse them inside the content?

I find myself a page with a
@foreach($articles as $article) @livewire(\Modules\Blog\Http\Livewire\Widgets\RatingsWithImageWidget::class, ['article' => $article_model, 'ratings' => $article->ratings])
@endforeach

inside this RatingsWithImageWidget when an image is clicked,
I would like to start a simple modal, placed outside the foreach

<x-filament::modal>
{{-- Modal content --}}
</x-filament::modal>

with inside a content with updated data that I would like to send each time, for example the title of the article
Modal Blade component - Core Concepts - Filament
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

Open Modal with parameters
FilamentFFilament / ❓┊help
10mo ago
Dispatch open-modal not responding
FilamentFFilament / ❓┊help
3y ago
Modal Dispatch
FilamentFFilament / ❓┊help
2y ago
Custom Page -> open modal from code (dispatch)
FilamentFFilament / ❓┊help
3y ago