1 | <?php |
||
2 | |||
3 | namespace App\Models; |
||
4 | |||
5 | class PortVlan extends PortRelatedModel |
||
6 | { |
||
7 | protected $table = 'ports_vlans'; |
||
8 | protected $primaryKey = 'port_vlan_id'; |
||
9 | public $timestamps = false; |
||
10 | |||
11 | public function getUntaggedAttribute($value) |
||
12 | { |
||
13 | if (! $value) { |
||
14 | if ($this->vlan == $this->port->ifVlan) { |
||
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
15 | $value = 1; |
||
16 | } |
||
17 | } |
||
18 | |||
19 | return $value; |
||
20 | } |
||
21 | } |
||
22 |