Get all row data, even with fields that are not in the record/model

I have this table builder code:

return $table
->query($this->getTableEloquentQuery())
->columns([
TextColumn::make(‘column1)->placeholder('-')->searchable(),
NumberInput::make('Amount'),
])
->actions([
Action::make('Add')
->action(function (Model $record): void {
print_r($record);

}),
])

The numberInput is a custom column that does not have a column in the database. I want to retrieve that (and all other) row values in the add action. I wonder if this is possible because you can only receive Model like data.
Was this page helpful?