ERROR 404 NOT FOUND en SELECT

Hello guys. I have the following problem with a SELECT in a form from which, in addition to selecting an option, I can CREATE and EDIT. The problem is that if I click the X to delete the selected option, it gives me an ERROR 404 NOT FOUND and it no longer lets me select another option. The only way to continue is by updating the form. My select code is: Forms\Components\Select::make('company_id') ->label('Empresa') ->relationship('company', 'company') ->searchable() ->required() ->preload() ->createOptionForm([ Forms\Components\TextInput::make('company') ->label('Nombre de Empresa') ->required(), Forms\Components\Select::make('groupcompany_id') ->label('Grupo Empresarial') ->relationship('groupcompany', 'name') ->preload() ->searchable() ]) ->createOptionUsing(function (array $data): int { $newcompany = Company::create([ 'company' => $data['company'] = Str::upper($data['company']), 'groupcompany_id' => $data['groupcompany_id'] ]);
return $newcompany->id; }) Can anyone help me? What can I do to avoid this error? Thanks in advance.
No description
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server