Laravel – Validation, required if 2 other fields have specified values
I have validation in Laravel 10 that contains validation for company_description. I want it to be required when two other fields have specified values. I got this code: 'company_description' => [ 'string', 'nullable', function ($attribute, $value, $fail) { if (request()->input('offer_type_id')…