F
Filament13mo ago
Meymink

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()) ]); }
No description
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server