23 lines
412 B
PHP
23 lines
412 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class NetworkIpNote extends Model
|
|
{
|
|
protected $fillable = [
|
|
'segment_id',
|
|
'ip_address',
|
|
'note',
|
|
'created_by',
|
|
'updated_by',
|
|
];
|
|
|
|
public function segment(): BelongsTo
|
|
{
|
|
return $this->belongsTo(NetworkSegment::class);
|
|
}
|
|
}
|