Skip to content

Commit 7bade4f

Browse files
committed
add fix method
1 parent 650e728 commit 7bade4f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Illuminate/Support/Lottery.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,18 @@ public static function alwaysLose($callback = null)
201201
static::determineResultNormally();
202202
}
203203

204+
/**
205+
* Set the sequence that will be used to determine lottery results.
206+
*
207+
* @param array $sequence
208+
* @param callable|null $whenMissing
209+
* @return void
210+
*/
211+
public static function fix($sequence, $whenMissing = null)
212+
{
213+
return static::forceResultWithSequence($sequence, $whenMissing);
214+
}
215+
204216
/**
205217
* Set the sequence that will be used to determine lottery results.
206218
*

0 commit comments

Comments
 (0)