1 | <?php |
||
30 | class User extends Authenticatable |
||
31 | { |
||
32 | use Eloquent\SoftDeletes; |
||
33 | |||
34 | /** |
||
35 | * @var array |
||
36 | */ |
||
37 | protected $dates = ['deleted_at']; |
||
38 | |||
39 | /** |
||
40 | * The attributes that are mass assignable. |
||
41 | * |
||
42 | * @var array |
||
43 | */ |
||
44 | protected $fillable = [ |
||
45 | 'name', |
||
46 | 'email', |
||
47 | 'password', |
||
48 | ]; |
||
49 | |||
50 | /** |
||
51 | * The attributes excluded from the model's JSON form. |
||
52 | * |
||
53 | * @var array |
||
54 | */ |
||
55 | protected $hidden = [ |
||
56 | 'password', |
||
57 | 'remember_token', |
||
58 | ]; |
||
59 | |||
60 | /** |
||
61 | * The Gravatar for the user. |
||
62 | * |
||
63 | * @return string |
||
64 | */ |
||
65 | 2 | public function getAvatarAttribute() |
|
69 | } |
||
70 |