{field} placeholder does not get replaced with field name in a custom error message |
Hi there...
After hours of try and error I found a solution for this problem. In my solution I use my code to show how it works fine: The "MyRules" file (part): PHP Code: public function myinvaliddate($str) The Model (part with rules & messages): PHP Code: protected $validationRules = [ The Language-File (part): PHP Code: 'validation' => [ I hope my approach will help you with your project. Greetings, Kighlander |
Welcome Guest, Not a member yet? Register Sign In |