Closed yoelpc4 closed 4 years ago
Thanks for this. Morph one probably isn't supported just because it has been introduced since I wrote the code. I need to add tests for this scenario to check that it works, and bug fix it if it doesn't.
This is definitely a missing feature. I've added it and it will be tagged as 1.7.0
and 2.0.0-beta.3
.
I have Project model morph one to Document model
app/Models/Project.php
app/Models/Document.php
with relation registration in adapter
app/JsonApi/v1/Projects/Adapter.php
When creating project via
[POST] https://api.test/v1/projects
with payloadI got an internal server error (500) when creating record with message
https://github.com/cloudcreativity/laravel-json-api/blob/71fc1a8d5f8613c6972c339c2ee23d494acf66df/src/Eloquent/Concerns/QueriesRelations.php#L35-L55
Do you have any idea?