I know this thread is long already but when I ran a laravel seeding for category tables it created some strange ids which were 1, 11, 21, 31 which caused me error as I tried to reference it in another another table using ids like 1, 2, 3 ... the whole day until I checked the database up manually,
So sometimes go look up the database table to ensure the foreign data actually exist properly.
Cheers