Validation ordering

Posted 10 months ago by fredmarks
            'clientid' => [
                Rule::exists('clients', 'id'),

The problem

The exists rule is being checked, even when the required_if returns false (i.e. existing_client != yes)

How can I write this, so that the exists rule is only checked when the required_if rule has passed

Please sign in or create an account to participate in this conversation.