© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•16mo ago•
2 replies
Tieme

Import, before action

Hi All,

I'm trying to import a CSV, the problem with the CSV is that there are no identifiers for updating a record.

Now i'm looking for a action before the importer runs to remove all data already availible in the DB so the new data will be leading and old data is remove.

Is there any action or function for this or do i need to modify the
Filament\Actions\Imports\Jobs\ImportCsv
Filament\Actions\Imports\Jobs\ImportCsv
job?

If i need to change the ImportCsv job, where do i need to add the remove from DB in following function (https://github.com/filamentphp/filament/blob/56a175a12909e8c76c423a50c90c1d507493d2e4/packages/actions/src/Imports/Jobs/ImportCsv.php#L62-L125).

Thanks for any help!
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

Import Action
FilamentFFilament / ❓┊help
2y ago
Action Import
FilamentFFilament / ❓┊help
2y ago
Import Action Examples
FilamentFFilament / ❓┊help
2y ago
Import Action Problems
FilamentFFilament / ❓┊help
3y ago