hasManyThrough('LimitRepetition', 'Limit'); } /** * @return \Illuminate\Database\Eloquent\Relations\HasMany */ public function limits() { return $this->hasMany('Limit', 'component_id'); } }