Question : laravel required if another field has value
Answered by : lokesh-ramchandani-in6l3jq294i2
'last_name' => 'required_if:another_field,value'
Source : | Last Update : Tue, 30 Mar 21
Question : Laravel required if it meet some value from another field
Answered by : hassan-joseph
//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 : https://laravel.com/docs/7.x/validation | Last Update : Tue, 28 Sep 21