Joined July 2013
·
Posted to
Laravel Validator: Require fields based on other inputs
over 1 year
ago
Thanks - This is very useful.
I'd like to take it a step further and make the fields "appear" within the page only when required, i.e. if "I use a framework" is set to 1, then make field "Which framework do you use" appear.
Is this something you've done, or do you know where I can find some sample laravel and/or boilerplay code?
Achievements
38 Karma
0 Total ProTip Views
![](https://dj1symwmxvldi.cloudfront.net/assets/badges/nephilakomaci3-5bd6f9c50317d93542d25650a39502d82f37fc925072e9048213cffddcccf4e9.png)
Nephila Komaci 3
Have at least three original repos where PHP is the dominant language
![](https://dj1symwmxvldi.cloudfront.net/assets/badges/charity-bab6d575c53894cc9e395db7cdb1f0f91f176fa0cc8122c5f824e672f3d556a4.png)
Charity
Fork and commit to someone's open source project in need
![](https://dj1symwmxvldi.cloudfront.net/assets/badges/walrus-1f517cbbd8f030099b8386c53d4ee40fece3fa146b6362accb3abddb436482cb.png)
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
![](https://dj1symwmxvldi.cloudfront.net/assets/badges/nephilakomaci-ff83276c8b6c472f151b6e3fbcbc31067ae72425f57a22742f9124501b02cd71.png)
Nephila Komaci
Have at least one original repos where PHP is the dominant language
Forgive my ignorance, but why is this a better way? Performance improvement or merely "neater" coding?