© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•16mo ago•
1 reply
jmrufo

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.
img_select.JPG
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

404 Not Found
FilamentFFilament / ❓┊help
17mo ago
socialite google 404 NOT FOUND
FilamentFFilament / ❓┊help
3y ago
Laravel Filament "/admin" 404 not found error (Live server)
FilamentFFilament / ❓┊help
3y ago
Select ->relationship table not found.
FilamentFFilament / ❓┊help
3y ago