stidges

Yep! To really enforce the unique constraint, you could also add this:

$table->primary(['order_id', 'user_id']);

Return to Thread...