Apr 29, 2024
0
Level 2
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;
}])
Please or to participate in this conversation.