If we have a table with a seeder and we want to add a foreign key to a column it must contain the correct id value or it can't be empty.
You can't use a value that doesn't belong to any entity in the other table nor delete one entity who has its ID in some other foreign_key in some other entity
by Luka Tatarishvili
3 years ago
Laravel
database
0
Pro tip: use ```triple backticks around text``` to write in code fences