LAR_Maintenance/app/Models/Host.php

23 lines
375 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Host extends Model
{
use HasFactory;
protected $fillable = [
'hostname',
'display_name',
'external_id',
];
public function tasks()
{
return $this->hasMany(MaintenanceTask::class,);
}
}