Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

iamlux20's avatar

Adding Livewire form to a Filament table

In Filament documentation, it only mentions passing static string data in livewire. Livewire::make(Foo::class, ['bar' => 'baz'])

In this example, how do I change 'baz' into something dynamic (ie: ID of current row, model of row, etc)? I have tested both ID and model using a function to return it, however it didn't work.

Livewire::make(SupportingDocumentsView::class, ['id' => function(Model $model) {
    return $model;
 }])
0 likes
0 replies

Please or to participate in this conversation.