user channel video laravel eloquent relationship

Posted 1 year ago by pedropankaj

I am struk at one point. i have a three table User, channel, video

tables user ---> channel user ---> videos want to access channel ---> videos with User details

the condition is

  1. user has one channel
  2. user has many videos
  3. channel has many videos

i want to get all the videos of channel has and with user details

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

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up


Reply to

Use Markdown with GitHub-flavored code blocks.