© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
3 replies
Gandalf

How to specify ignoreRecord in unique rule in Import?

I've added an import action to a model with option to update existing record via
firstOrNew
firstOrNew
method. Now, I wish to have the unique rule applied on a column, but only when the record is not being updated with the same value.

Typical laravel way for this is to ignore record with matching id. However, how do I specify this in the
rules()
rules()
parameter for a column in
getColumns
getColumns
method of an Importer?
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

Unique validation rule in repeater
FilamentFFilament / ❓┊help
3y ago
ignoreRecord: true
FilamentFFilament / ❓┊help
3y ago
Unique rule with MorphToSelect fields
FilamentFFilament / ❓┊help
3y ago
Customizing the Unique validation rule
FilamentFFilament / ❓┊help
3y ago