ignoreRecord: true

Hello, I'm trying to use ignoreRecord: true in a relation manager but it is ignored Forms\Components\Select::make('estudiante_id') ->required() ->debounce(500) ->columnSpanFull() ->label('Estudiante') ->inlineLabel('false') ->placeholder('Seleccione o busque a un estudiante') ->relationship('estudiante', 'carnet_nombres_apellidos') ->searchable(['carnet', 'nombres', 'apellidos']) ->unique(ignoreRecord: true)
8 Replies
Resonance
Resonance2y ago
I don't think that you can use ignore record on select component though, or maybe I'm wrong
Dan Harrin
Dan Harrin2y ago
thats were 95% of people use it whats the problem @renatoalvarez, you said it is ignored?
renatoalvarez
renatoalvarezOP2y ago
Hello, on edit I get unique validation error
Dan Harrin
Dan Harrin2y ago
hmm not sure
renatoalvarez
renatoalvarezOP2y ago
Maybe because is a select flied? In text input doesnt have this problem
Dan Harrin
Dan Harrin2y ago
shouldnt be a problem
ZedoX
ZedoX2y ago
Are you sure you don't already have a record with that id taken?
renatoalvarez
renatoalvarezOP2y ago
yes, Im trying to edit the record
Want results from more Discord servers?
Add your server