bashy
5 years ago
1472
10
General

Extending Validation with Custom Message Attribute

Posted 5 years ago by bashy

So I extended the validator and added my own rule (works great). It shows the custom message below but when I try and use :values or :other it just prints that out in text. :attribute works fine.

Just wondering how they're set or how to use them.

"empty_when" => "The :attribute must be blank when :other is entered.",

Please sign in or create an account to participate in this conversation.