Support the ongoing development of Laravel.io →
Database Eloquent Architecture

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...

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

shez1983 shez1983 Joined 31 Dec 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.