21 lines
328 B
PHP
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,);
|
|
}
|
|
}
|