Support the ongoing development of Laravel.io →
posted 10 years ago
Database
Last updated 1 year ago.
0

Try create instead of insert

What happens when you split it up into 2 calls?

Can you try with Eloquent::unguard(); at the top of the run function

Last updated 1 year ago.
0

Make sure table is unguarded, and you need multiple insert calls to insert multiple rows. Or you can run 'artisan db:seed' multiple times.

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

k1d k1d Joined 18 Feb 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.

© 2024 Laravel.io - All rights reserved.