Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 2 years ago.
0

I think I know how to help with this, but I need a little more explanation of the problem if you don't mind..

Last updated 2 years ago.
0

I have got an polymorphic relationship setup on the comments -> albums / videos tables. Now i want to add an activity table and fetch the activities with eager loading the comments for each activity row.

I tried eager loading a nested relationship

Activity::with('parent.comments')->get();

but that doesn't work on a nested polymorphic relationship

Last updated 2 years ago.
0

bump bump

Last updated 2 years ago.
0

Yeah.. I'm working on the same thing.. the internet doesn't seem to offer any answer to this. Any updates?

0

Im searching for the same thing..any help is appreciated.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.