hasMany(MaintenanceTask::class); } public function hostGroups() { return $this->belongsToMany(HostGroup::class)->using(HostHostGroup::class); } }