Custom validation in Laravel 4

前端 未结 2 1682
遥遥无期
遥遥无期 2021-01-21 13:08

To add a new validation to Laravel I have done this:

made a new file called customValidation.php in app/start/

and then included it in

2条回答
  •  醉酒成梦
    2021-01-21 14:01

    When submitting the form, the radios were not set in their initial states, and this made Laravel not to look for the validator of the item. So, it doesn't have any workaround for that. What I did was I simply added an initial state to the radios and they worked.

    Much Like said by Andreyco

提交回复
热议问题