trait HasCollection (View source)

Properties

static protected $resolvedCollectionClasses

Methods

TCollection
newCollection(array $models = [])

Create a new Eloquent Collection instance.

TCollection>|null
resolveCollectionFromAttribute()

Resolve the collection class name from the CollectedBy attribute.

Details

TCollection newCollection(array $models = [])

Create a new Eloquent Collection instance.

Parameters

array $models

Return Value

TCollection

TCollection>|null resolveCollectionFromAttribute()

Resolve the collection class name from the CollectedBy attribute.

Return Value

TCollection>|null