JuanRangel
1 year ago

Help Figuring out the Proper Relationship

Posted 1 year ago by JuanRangel

I have three tables.

exercises

  • id

invites

storytellers

  • storytellerable_id == exercise->id
  • storytellerable_type == App\Exercise
  • email == [email protected]

I need to be able to grab storyteller's invite($storyteller->invite) or a storyteller that belongs to an invite($invite->storyteller). I need to match the email, exercise ID, and the type.

I cannot wrap my head around how to make this work. Can someone help me out?

Please sign in or create an account to participate in this conversation.