FilamentF
Filament11mo ago
Arjen

Get current row in castStateUsing ImportColumn

Is this possible inside the closure? I need to change the state of one column based on another column.
Solution
Solved with:
->castStateUsing(function (?string $state, Importer $importer) {
    // $importer->getData()['ID']...
    return $state;
}),
Was this page helpful?