1
0
Files
services_core/app/Models/TopologyPort.php
T
2026-07-31 13:57:11 +07:00

21 lines
337 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class TopologyPort extends Model
{
protected $guarded = ['id'];
protected function casts(): array
{
return ['metadata' => 'array'];
}
public function node()
{
return $this->belongsTo(TopologyNode::class, 'node_id');
}
}