notIn validation custom error

Hi,

Is it possible to create custom error messages for the following two 'notIn' validators without making changing them to rules?
(Check picture)

public function form(Form $form): Form { return $form ->schema([ Forms\Components\TextInput::make('email') ->required() ->maxLength(255) ->email() ->notIn(fn (): array => $this->ownerRecord->users()->pluck('email')->toArray()) ->notIn(fn (): array => $this->ownerRecord->teamInvitations()->pluck('email')->toArray()) ]); }
image.png
Was this page helpful?