collection::append

Appends an element to the data array

collection::append($key, $object)

Parameters

$key (string)
$object (mixed)

Return values

\Collection