Level 1
Have you try custom validation for it ? You can make your own validation rule.
https://laravel.com/docs/5.6/validation#custom-validation-rules
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have a laravel validation that needs to match one of the 3 regex's
$validatedData = $request->validate([
'BCH-address' => 'regex:/^([13][a-km-zA-HJ-NP-Z1-9]{25,34})/',
'BCH-address' => 'regex:/^((bitcoincash:)?(q|p)[a-z0-9]{41})/',
'BCH-address' => 'regex:/^((BITCOINCASH:)?(Q|P)[A-Z0-9]{41})$/',
]),
Is there a way to use a OR condition for the validation??
Please or to participate in this conversation.