HasMany

Extends

Methods

public

one ( ) : HasOne

Convert the relationship to a "has one" relationship.

public

getResults ( ) : mixed

Get the results of the relationship.

public

initRelation ( array $models , $relation ) : array

Initialize the relation on a set of models.

Parameters

  • $models array
  • $relation string
public

match ( array $models , Illuminate\...\Collection $results , $relation ) : array

Match the eagerly loaded results to their parents.

Parameters

  • $models array
  • $results Illuminate\...\Collection
  • $relation string