|string> */ public function rules(): array { \Log::error('boop'); return [ 'ldap_username_field' => 'not_in:sAMAccountName|required_if:ldap_enabled,1', 'ldap_auth_filter_query' => 'not_in:uid=samaccountname|required_if:ldap_enabled,1', 'ldap_filter' => 'nullable|regex:"^[^(]"|required_if:ldap_enabled,1', ]; } }