User
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 0
eloc 8
c 1
b 0
f 0
dl 0
loc 22
1
<?php
2
3
namespace App;
4
5
use Illuminate\Notifications\Notifiable;
6
use Illuminate\Foundation\Auth\User as Authenticatable;
7
8
/**
9
 * @property string $name
10
 * @property string $github_username
11
 * @property string $github_id
12
 * @property string $github_token
13
 * @property string $github_avatar
14
 */
15
class User extends Authenticatable
16
{
17
    use Notifiable;
0 ignored issues
show
introduced by
The trait Illuminate\Notifications\Notifiable requires some properties which are not provided by App\User: $email, $phone_number
Loading history...
18
19
    /**
20
     * The attributes that are mass assignable.
21
     *
22
     * @var array
23
     */
24
    protected $fillable = [
25
        'name',
26
        'github_username', 'github_id',
27
        'github_token', 'github_avatar'
28
    ];
29
30
    /**
31
     * The attributes that should be hidden for arrays.
32
     *
33
     * @var array
34
     */
35
    protected $hidden = [
36
        'password', 'remember_token',
37
    ];
38
}
39