LAR_Maintenance/app/Models/Host.php
2024-08-06 08:31:51 +02:00

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