Total Complexity | 1 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class User extends Authenticatable |
||
10 | { |
||
11 | use HasRoles; |
||
|
|||
12 | use Notifiable; |
||
13 | |||
14 | /** |
||
15 | * The attributes that are mass assignable. |
||
16 | * |
||
17 | * @var array |
||
18 | */ |
||
19 | protected $fillable = [ |
||
20 | 'name', 'email', 'password', |
||
21 | ]; |
||
22 | |||
23 | /** |
||
24 | * The attributes that should be hidden for arrays. |
||
25 | * |
||
26 | * @var array |
||
27 | */ |
||
28 | protected $hidden = [ |
||
29 | 'password', 'remember_token', |
||
30 | ]; |
||
31 | |||
32 | /** |
||
33 | * The attributes that should be cast to native types. |
||
34 | * |
||
35 | * @var array |
||
36 | */ |
||
37 | protected $casts = [ |
||
38 | 'email_verified_at' => 'datetime', |
||
39 | ]; |
||
40 | |||
41 | public function generateToken() |
||
49 |