Метод | Описание | |
---|---|---|
add ( mixed $item ) : |
Add an item to the collection. | |
contains ( mixed $key ) : boolean | Determine if a key exists in the collection. | |
find ( mixed $key, mixed $default = null ) : |
Find a model in the collection by key. | |
lists ( $value, string $key = null ) : array | Get an array with the values of a given key. | |
load ( ) : void | Load a set of relationships onto the collection. | |
modelKeys ( ) : array | Get the array of primary keys |