Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Laravel required if it meet some value from another field

//Laravel required if it meet some value from another field

  
       'booking_type' => [
                'integer',
                'required',
            ],
            'booking_flight_description' => [
              'required_if:booking_type,==,1' // you can use multi value by using ,
            ],
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #Laravel #required #meet #field
ADD COMMENT
Topic
Name
3+6 =