LAR_Maintenance/app/Models/Host.php
2024-08-16 23:37:42 +02:00

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