Completed
Push — master ( 27aaeb...0eb7b3 )
by wen
03:21
created

User   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 18
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
4
namespace Sco\Admin\Models;
5
6
use Illuminate\Foundation\Auth\User as Authenticatable;
7
use Sco\Admin\Traits\EntrustPermissionTrait;
8
use Sco\Admin\Traits\ModelEventTrait;
9
10
class User extends Authenticatable
11
{
12
    use EntrustPermissionTrait, ModelEventTrait;
13
14
    protected $visible = ['id', 'name', 'email', 'created_at', 'roles'];
15
16
    protected $guarded = ['created_at', 'updated_at'];
17
18
    protected $hidden = ['password'];
19
20
21
    public function __construct(array $attributes = [])
22
    {
23
        parent::__construct($attributes);
24
25
        $this->table = config('admin.users_table');
26
    }
27
}
28