You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been working on implementing this in a new project I'm working on and so far it's been great! However, I'm running in an issue when trying to add a nested form which uses a BelongsTo field.
The specific error I'm getting is happening happening within the index function of laravel/nova/src/Http/Controllers/AssociatableController.php, specifically at line 23. As far as I can tell, the $field variable is returning null because the Nova isn't able to find the resource.
I've been digging around a bit and I believe the issue is being cause by an incorrectly formatted API call to the /nova-api/RESOURCE/associatable endpoint. When I load the resource through a nested form, it tries to call the API at /nova-api/admission-referral-informations/associatable/nested:referralInformation[county] (which throws a 500 error), but when I load the resource as a standard Nova relationship field, it calls the API at /nova-api/admission-referral-informations/associatable/county (which works).
So basically the nested form uses nested:referralInformation[county] in the URL, when it should actually just be using county. I'll keep digging around to see if I can fix it on my own, but please let me know if you have a better idea of what's going on/if you need more info.
Thanks!
The text was updated successfully, but these errors were encountered:
I've been working on implementing this in a new project I'm working on and so far it's been great! However, I'm running in an issue when trying to add a nested form which uses a BelongsTo field.
The specific error I'm getting is happening happening within the
index
function oflaravel/nova/src/Http/Controllers/AssociatableController.php
, specifically atline 23
. As far as I can tell, the$field
variable is returning null because the Nova isn't able to find the resource.I've been digging around a bit and I believe the issue is being cause by an incorrectly formatted API call to the
/nova-api/RESOURCE/associatable
endpoint. When I load the resource through a nested form, it tries to call the API at/nova-api/admission-referral-informations/associatable/nested:referralInformation[county]
(which throws a 500 error), but when I load the resource as a standard Nova relationship field, it calls the API at/nova-api/admission-referral-informations/associatable/county
(which works).So basically the nested form uses
nested:referralInformation[county]
in the URL, when it should actually just be usingcounty
. I'll keep digging around to see if I can fix it on my own, but please let me know if you have a better idea of what's going on/if you need more info.Thanks!
The text was updated successfully, but these errors were encountered: