| Total Complexity | 5 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 14 | class User extends Authenticatable |
||
| 15 | { |
||
| 16 | use HasRoles; |
||
|
|
|||
| 17 | use Notifiable; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * The attributes that are mass assignable. |
||
| 21 | * |
||
| 22 | * @var array |
||
| 23 | */ |
||
| 24 | protected $fillable = [ |
||
| 25 | 'name', 'email', 'password', 'active', 'token', |
||
| 26 | ]; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * The attributes that should be hidden for arrays. |
||
| 30 | * |
||
| 31 | * @var array |
||
| 32 | */ |
||
| 33 | protected $hidden = [ |
||
| 34 | 'password', 'remember_token', |
||
| 35 | ]; |
||
| 36 | |||
| 37 | protected $guard_name = 'web'; |
||
| 38 | |||
| 39 | public function deleteById($id) |
||
| 63 |