Skip to content

CollectionStackAware

  • Full name: \Codefy\Framework\Support\Traits\CollectionStackAware

Properties

collection

protected array $collection

Methods

merge

Merge the given collection into another collection.

public merge(array $collection): static

Parameters:

Parameter Type Description
$collection array

replace

Replace the given collection with other collections.

public replace(array $replacements): static

Parameters:

Parameter Type Description
$replacements array

except

Disable the given collection.

public except(array $collection): static

Parameters:

Parameter Type Description
$collection array

toArray

Convert the collection to an array.

public toArray(): array


Automatically generated on 2025-10-13