FilamentF
Filament3y ago
Arko

TextInputColumn $get

I'm creating a table that allows inline editing using TextInputColumn'. I would like to get a previous fields value in order to do some db updating:
TextInputColumn::make($date . '_revenue')
    ->label('Aantal')
    ->placeholder('0'),
TextInputColumn::make($date)
    ->placeholder('0.00')
    ->updateStateUsing(function ($state, Get $get, ProjectCostDay $model) use ($date) {
        ray($get($date . '_revenue'));

        return $state;
    }),

I'm probably misusing $get here, but I can't wrap my head around it.
Was this page helpful?