Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
419 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) {
2021-10-01 14:42:27 +02:00
if ($this->port && $this->vlan == $this->port->ifVlan) {
$value = 1;
}
}
return $value;
}
2020-04-16 09:19:58 -05:00
}