Skip to content

Commit

Permalink
add fix method
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Nov 15, 2022
1 parent 650e728 commit 7bade4f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Illuminate/Support/Lottery.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,18 @@ public static function alwaysLose($callback = null)
static::determineResultNormally();
}

/**
* Set the sequence that will be used to determine lottery results.
*
* @param array $sequence
* @param callable|null $whenMissing
* @return void
*/
public static function fix($sequence, $whenMissing = null)
{
return static::forceResultWithSequence($sequence, $whenMissing);
}

/**
* Set the sequence that will be used to determine lottery results.
*
Expand Down

0 comments on commit 7bade4f

Please sign in to comment.