hyperf / hyperf

🚀 A coroutine framework that focuses on hyperspeed and flexibility. Building microservice or middleware with ease.

Home Page:https://www.hyperf.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[QUESTION] How to validate prohibited?

Steinweber opened this issue · comments

How can you validate an input if only one field is allowed to have a value, but no field has to have a value?

'channel_1_id' => ['prohibits:channel_2_id,channel_3_id', 'ulid'],
'channel_2_id' => ['prohibits:channel_1_id,channel_3_id', 'ulid'],
'channel_3_id' => ['prohibits:channel_1_id,channel_2_id', 'ulid']