© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
10 replies
jop00

Select field not showing new created record using modal

When I create a new record using the create modal of a select field with this code I get this error
Undefined property: stdClass::$
Undefined property: stdClass::$
:

)->createOptionUsing(function ($data) {
                                    $newProducer = new Producer();
                                    $newProducer->fill($data);
                                    $newProducer->user_id = Auth::id();
                                    $newProducer->save();
                                    return $newProducer->id;
)->createOptionUsing(function ($data) {
                                    $newProducer = new Producer();
                                    $newProducer->fill($data);
                                    $newProducer->user_id = Auth::id();
                                    $newProducer->save();
                                    return $newProducer->id;
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

viewrecord on modal not showing record
FilamentFFilament / ❓┊help
2y ago
New Record Modal does not work in Select Form
FilamentFFilament / ❓┊help
15mo ago
Record not showing
FilamentFFilament / ❓┊help
16mo ago
select field relationship create modal
FilamentFFilament / ❓┊help
3y ago