I have a many-many relationship in my Laravel application, Courses
and Users
, and users can enroll in a course with my Enrollments
table. My Enrollments
table functions as the many-many table for Courses
and Users
. A user can enroll in a course one time.
My idea is that Enrollments
will function more than just a many-many table, and store info like the payment amount, expiration date of the enrollment, etc. However, in Laravel Nova (my admin dashboard), I can't make the HasOne:: relationship work for the Enrollments
table. It's just ugly IDs that I never want shown. Help.