Support the ongoing development of →
Database Eloquent
Last updated 2 weeks ago.

In case this is only example, you need to do input validation and that solves your problem. (see manual)

In case that this are real tables merge them.


I would use 'transactions'. They were designed just for such cases. (chapter 'Database Transactions')

Last updated 7 years ago.

Sign in to participate in this thread!


Your banner here too?

archer3cl archer3cl archer3cl Joined 7 Mar 2015


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

Your logo here?

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

© 2022 - All rights reserved.