Files

22 lines
404 B
PHP
Raw Permalink Normal View History

2020-04-16 09:19:58 -05:00
<?php
namespace App\Models;
class PortVlan extends PortRelatedModel
{
protected $table = 'ports_vlans';
protected $primaryKey = 'port_vlan_id';
public $timestamps = false;
public function getUntaggedAttribute($value)
{
if (! $value) {
if ($this->vlan == $this->port->ifVlan) {
$value = 1;
}
}
return $value;
}
2020-04-16 09:19:58 -05:00
}