class Sequence (View source)
protected array | $sequence | The sequence of return values. | |
protected int | $count | The count of the sequence items. | |
protected int | $index | The current index of the sequence. |
void | __construct(array ...$sequence) Create a new sequence instance. | |
mixed | __invoke() Get the next value in the sequence. |
Create a new sequence instance.
Get the next value in the sequence.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Database/Eloquent/Factories/Sequence.html