Support the ongoing development of Laravel.io →

jol-bdcons

Joined 23 Jun 2014

Statistics

Threads 1
Replies 1
Solutions 1
Articles 0
posted 10 years ago

firstOrCreate giving a foreign key constraint error

Hi, Having a problem with using firstOrCreate with my Eloquent model $progress = Progress::firstOrCr...

0 Likes
2 Replies
Solved
replied 10 years ago

firstOrCreate giving a foreign key constraint error

Ok, I managed to get round this by using the findOrNew() function, assigning the values for employee...

0 Likes
Solved

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.