Avatar::user()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace App\Models;
4
5
use App\Traits\TenantConnectionResolver;
6
use Illuminate\Database\Eloquent\Factories\HasFactory;
7
8
class Avatar extends \LaravelEnso\Avatars\Models\Avatar
9
{
10
    use HasFactory;
11
    use TenantConnectionResolver;
0 ignored issues
show
Bug introduced by
The trait App\Traits\TenantConnectionResolver requires the property $role_id which is not provided by App\Models\Avatar.
Loading history...
12
13
    public function user()
14
    {
15
        return $this->belongsTo(User::class);
16
    }
17
}
18