/** * Match the eagerly loaded results to their single parents. * * @param array $models * @param \Illuminate\Database\Eloquent\Collection $results * @param string $relation * @return array * @static */ public static function matchOne($models, $results, $relation) { //Method inherited from \Illuminate\Database\Eloquent\Relations\HasOneOrMany return \Illuminate\Database\Eloquent\Relations\HasMany::matchOne($models, $results, $relation); }