LAR_Maintenance/app/Models/MaintenanceTask.php
2024-08-06 11:02:45 +02:00

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);
}
}