© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•12mo ago•
3 replies
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;
}),
->castStateUsing(function (?string $state, Importer $importer) {
    // $importer->getData()['ID']...
    return $state;
}),
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Get current row record in custom action
FilamentFFilament / ❓┊help
2y ago
ImportColumn
FilamentFFilament / ❓┊help
3y ago
Access to current row in RepeatableEntry?
FilamentFFilament / ❓┊help
10mo ago
Ignore ImportColumn
FilamentFFilament / ❓┊help
10mo ago