belongsToMany(MaintenanceHostHistory::class); } public function tasks() { return $this->hasMany(MaintenanceTaskHistory::class); } }