replaceMountedAction
How to use
replaceMountedAction on resource?Solution
I think you need to add the sendMoneyConfirmation method to the ListPage
ListXX.php
ListXX.php
replaceMountedAction->headerActions([
Tables\Actions\Action::make('sendMoney')
->form([
//...
TextInput::make('amount'),
])
->action(function (array $data, array $arguments, Page $livewire) {
$livewire->replaceMountedAction('sendMoneyConfirmation');
}),
])public function sendMoneyConfirmationAction(): Action
{
return Action::make('sendMoneyConfirmation')
->requiresConfirmation()
->action(function (array $arguments) {
//...
});
}