Understanding Laravel relations better

  laravel, laravel-8, php, relational-database

I want to make a simple project to understand better the Laravel database relationships. So I decided to make a movie storage project which is holding some movie names and some informations about that movie, it should be look like this:


So I wrote the relations between these fields like this:

Movie AND Actor : Many To Many

Movie AND Director : Many To One

Movie AND IMDB : Many To One

Movie AND Genre : Many To Many

So if these relations are wrong, plz let me know, I would really appreciate any idea from you guys…

I know this is a nooby question but would you mind help me with this, because I want to get this thing straight in my head!

Thanks in advance.

Source: Laravel

Leave a Reply