Which is also something I would expect. Only it returns in a 500 error. What I want is to get a nice validation error somewhere on my form, presumably with the AddressType Select field. I tried to use this rule:
->unique(ignoreRecord: true)
->unique(ignoreRecord: true)
Then I get a nice validation message below my Select field, but it also triggers when I just update an existing record. Next, I tried this rule:
So, I want to know how I can the right validation message inside my form, instead of a 500 error. Not sure if this could work because with new records you only know when inserting them into the database if the fields are unique. How would this work in Filament?