class CrossJoinSequence extends Sequence (View source)

Properties

protected array $sequence

The sequence of return values.

from  Sequence
int $count

The count of the sequence items.

from  Sequence
int $index

The current index of the sequence iteration.

from  Sequence

Methods

__construct(array ...$sequences)

Create a new cross join sequence instance.

int
count()

Get the current count of the sequence items.

from  Sequence
mixed
__invoke(array<string, mixed> $attributes = [], Model|null $parent = null)

Get the next value in the sequence.

from  Sequence

Details

__construct(array ...$sequences)

Create a new cross join sequence instance.

Parameters

array ...$sequences

int count()

Get the current count of the sequence items.

Return Value

int

mixed __invoke(array<string, mixed> $attributes = [], Model|null $parent = null)

Get the next value in the sequence.

Parameters

array<string, mixed> $attributes
Model|null $parent

Return Value

mixed

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.