Support the ongoing development of →
Eloquent Laravel

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?


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


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

The link to the official documentation is Has Many Through


Sign in to participate in this thread!

Full Stack Europe

Your banner here too?


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

Your logo here?

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

© 2023 - All rights reserved.