Skip to content

notIn()

notIn() rejects values that match the supplied list using strict comparison.

use Fynix\Rule;
$username = Rule::string('username')
->notIn(['admin', 'root', 'system']);

A rejected value produces the value.disallowed error code.