I was using TestDummies in 5.0 but changed to built in Factory functionality in 5.1. but when i ran the db:seed there was an error because for some reason the code ran an incomplete insert statement.
My table users has: username, email, password, activation_key, remember_me...
but the insert statement incorrectly produced: insert into users (activation_key, remember_me...) Values ('.....')
This meant that email/username were null for the first row, resulted in Duplicate constraint (as username/email were unique)...
So in the mean time I have switched back to using TestDummies...
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community