F
Filament2mo 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: ```php ->castStateUsing(function (?string $state, Importer $importer) { // $importer->getData()['ID']... return $state;...
Jump to solution
1 Reply
Solution
Arjen
Arjen2mo ago
Solved with:
->castStateUsing(function (?string $state, Importer $importer) {
// $importer->getData()['ID']...
return $state;
}),
->castStateUsing(function (?string $state, Importer $importer) {
// $importer->getData()['ID']...
return $state;
}),

Did you find this page helpful?