Closed phuclh closed 3 years ago
@phuclh
I'm checking this one as well, the problem looks like the var full_number
is an object for this case
just before the firstOrCreate $full_number = $address->phone->full_number; $phone = Phone::firstOrCreate(['full_number' => $full_number, 'country_callingcode_id' => 1]);
it solved
@wolfrednicolas One more thing, I don't think we need to create a phone when creating an address anymore because the PhoneNumber field already takes care of that.
@wolfrednicolas One more thing, I don't think we need to create a phone when creating an address anymore because the PhoneNumber field already takes care of that.
I tested and you're right... let me remove those
When creating an address, got this error. Also, I selected a phone from the dropdown, it should not run the phone insertion query on the
phones
table.