Completed
Push — master ( 2bac5c...02fc6a )
by wen
02:51
created

Manager   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
c 2
b 0
f 0
lcom 0
cbo 1
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A setPasswordAttribute() 0 4 1
1
<?php
2
3
4
namespace Sco\Admin\Models;
5
6
use Illuminate\Foundation\Auth\User as Authenticatable;
7
use Zizaco\Entrust\Traits\EntrustUserTrait;
8
9
class Manager extends Authenticatable
10
{
11
    use EntrustUserTrait;
12
13
    protected $visible = ['id', 'name', 'email', 'created_at', 'roles'];
14
15
    protected $guarded = ['created_at', 'updated_at'];
16
17
    public function setPasswordAttribute($value)
18
    {
19
        $this->attributes['password'] = bcrypt($value);
20
    }
21
22
}
23