Issues (2963)

app/Models/PortVlan.php (1 issue)

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
The property port does not exist on App\Models\PortVlan. Did you mean port_id?
Loading history...
15
                $value = 1;
16
            }
17
        }
18
19
        return $value;
20
    }
21
}
22