LAR_Maintenance/app/Models/Host.php
2024-08-16 18:20:45 +02:00

22 lines
352 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',
];
public function tasks()
{
return $this->hasMany(MaintenanceTask::class,);
}
}