MySQL Database Design
Episode 2 - Primary and Foreign Keys
Laracasts is packed full with over 1,000 lessons just like this one.
Sign up to get full access or
to your account and sit back.
If a primary key is a unique identifier for a record within a table, then a foreign key is a reference to a primary key on a foreign table.
There's no shortage of content at Laracasts. In fact, you could watch nonstop
for days upon days, and still not see everything!