How to pass current record data to `::steps()` in an `emptyStateActions()` in a `RelationManager`
So, I have a
Category
model that hasMany products
. The Product
creation is a wizard with multiple steps()
.
In Product
's table emptyStateActions()
, I use Tables\Actions\CreateAction::make()->steps()
. But I want to have some data pre-filled from the Category
in case this CreateAction
was initiated from Category
edit view.1 Reply
Found it,
mountUsing()
should do the job: https://filamentphp.com/docs/2.x/tables/actions#filling-default-data