Hey there I am creating LMS using laravel, so I face some problems This is my Models
Course User which has roles -student,instructor,admin etc. course_user which has columns course_id,user_id,status
I created relationships
What I need first is to check If user enrolled course ,then if user enrolled the course to check IsStatus column is 1. That means User is Manually bought the course.
Second the admin panel
User course lesson video course_user which is an intermediate table for all students How to get each instructor courses,users,lessons and video