© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
F
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
Join
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
Unique validation rule in repeater
F
Filament / ❓┊help
3y ago
ignoreRecord: true
F
Filament / ❓┊help
3y ago
Unique rule with MorphToSelect fields
F
Filament / ❓┊help
3y ago
Customizing the Unique validation rule
F
Filament / ❓┊help
3y ago