Get current row record in custom action

Tables\Actions\Action::make('make_additional_payment')
                    ->label('Наплати дополнително')
                    ->form([
                        Forms\Components\TextInput::make('price')
                            ->label('Дополнителна цена за наплата')
                            ->required(),
                    ])
                    ->action(function (array $data): void {
                        // send the call for additional payment
                    }),


Hello guys, how can i get the current row in a custom action so i can send a call.
Was this page helpful?