LAR_Maintenance/app/Models/MaintenanceTask.php

24 lines
373 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class MaintenanceTask extends Model
{
use HasFactory;
protected $fillable = [
'maintenance_id',
'host_id',
'task_id',
];
public function task()
{
return $this->belongsTo(Task::class);
}
}