When method on Enum Validation Rule Throws Undefined Method Error
Hi Laracons, I have recently updated my laravel framework to version 10.46.0. However, when I try to use when method to conditionally modify the Enum validation rule as below, I get undefined method error on when
What could I be doing wrong? I would appreciate any help you can afford me. I have already tried clearing the cache, config, clear-compiled and ran composer dump-autoload -o, but nothing is working.
just make sure you really are on that version and that you use correct Rule class (Illuminate\Validation\Rule) and not using something custom that might be overridden