Skip to content

Wire array first

Returns the first item in the WireArray or boolean false if empty.

Note that this resets the internal WireArray pointer, which would affect other active iterations.

Example

$item = $items->first();

Usage

$wire = $wireArray->first();

Return value

Wire mixed bool