laravel required if another field has value
'last_name' => 'required_if:another_field,value'
laravel required if another field has value
'last_name' => 'required_if:another_field,value'
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 ,
],
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us