LAR_Maintenance/app/Models/MaintenanceHostHistory.php

22 lines
405 B
PHP
Raw Normal View History

2024-07-30 08:44:58 +00:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class MaintenanceHostHistory extends Model
{
use HasFactory;
2024-08-06 06:31:51 +00:00
public function hosts()
{
return $this->belongsToMany(MaintenanceHostHistory::class);
}
public function tasks()
{
return $this->hasMany(MaintenanceTaskHistory::class);
}
2024-07-30 08:44:58 +00:00
}