class
Illuminate
/
Database
/
Eloquent
/
Relations
/
HasOneThrough
You are viewing an older version of the documentation. For the latest, please visit master documentation.
HasOneThrough
Extends
Uses
Methods
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 , Collection $results , $relation ) : array
Match the eagerly loaded results to their parents.
Parameters
- $models array
- $results Collection
- $relation string