creative-punch.net
Laravel quicktip: Resolving “Cannot truncate a table referenced in a foreign key constraint”
Here is a quick little tip to prevent/resolve a foreign key error you may get in a relational database when trying to seed your database. The error you may be getting looks like this: [Exception] SQLSTATE[42000]: Syntax error or access violation: 1701...