staudenmeir / eloquent-json-relations

Laravel Eloquent relationships with JSON keys
MIT License
979 stars 63 forks source link

Array of Objects and Morph #48

Open aldozumaran opened 3 years ago

aldozumaran commented 3 years ago

Hi, i need to save in a json field an array of objects that contains a morph

image

how can i do that?

staudenmeir commented 3 years ago

This is not supported yet. How would you use the relationship?

aldozumaran commented 3 years ago

Ticket messages, one ticket has many messages, but messages can be written by two models (admin/user)

aldozumaran commented 2 years ago

any updates?

egyjs commented 3 months ago

Any updates on this ?

staudenmeir commented 3 months ago

I haven't found a way to implement this yet and it might not be possible.

@egyjs What does your schema and use case look like?