Answers for "laravel form validation based on another field value"

PHP
0

laravel form validation based on another field value

$validator = Validator::make($request->all(),[
        'program'           => 'required',
        'music_instrument'  => 'required_if:program.*,in:Music'
  ]);
Posted by: Guest on November-24-2020

Code answers related to "laravel form validation based on another field value"

Browse Popular Code Answers by Language