Skip to content

Commit

Permalink
- Added unique check for randomIdOrGenerate
Browse files Browse the repository at this point in the history
  • Loading branch information
dash8x committed Mar 18, 2024
1 parent 8df12db commit 733aa3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ function random_id_or_generate(
): mixed
{
$id = null;

if (! ($unique && $generate)) {
$id = $model_class::inRandomOrder();

Expand Down

0 comments on commit 733aa3f

Please sign in to comment.