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::$
:
7 Replies
It's a belongsToMany relationship
try
return $newProducer;
with this I don't get the error but the select field is not filled with the new record
do I need to send a dispatch event to upload the form?
That is strange What if you remove the cerationOptionUsing() and let it create it from the relationshio
If I remove the creationOptionUsing():
Undefined property: stdClass::$
if you dd($newProducer) what do you get?
I get the model Producer
I updated the code and now it's working: