Support the ongoing development of Laravel.io →
Eloquent Laravel
0
moderator

Hello @jacquesjengelbrecht your models can have many to many relations to different objects. But I don't understand what your question is.

Do you want to know how to get all the surveys for a user? Or something else?

0

I can get it, but surveys is specific to business which is specific to a user

0

To get your end result you can use the hasManyThrough relationship.

The link to the official documentation is Has Many Through

alirasouliwebdeveloper liked this reply

1

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.