22 lines
352 B
PHP
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,);
|
|
}
|
|
}
|