Laravel required if not other field value code example Example: laravel required if another field has value 'last_name' => 'required_if:another_field,value'