22 lines
405 B
PHP
22 lines
405 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class MaintenanceHostHistory extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
public function hosts()
|
|
{
|
|
return $this->belongsToMany(MaintenanceHostHistory::class);
|
|
}
|
|
|
|
public function tasks()
|
|
{
|
|
return $this->hasMany(MaintenanceTaskHistory::class);
|
|
}
|
|
}
|