Closed phamquocbuu closed 4 years ago
Reproduce steps:
SequenceValueOutOfBoundsException
My code:
// start with $position = 1; foreach ($orders as $index) { //... MyModel::updateOrCreate( [ // .... ], [ 'position' => $position++, // .... ]);
So what I have to do when I want to update position in this case?
Sorry, this is my mistake in code logic.
Reproduce steps:
SequenceValueOutOfBoundsException
.My code:
So what I have to do when I want to update position in this case?