| 1 | <?php |
||
| 7 | class User extends Authenticatable |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * The attributes that are mass assignable. |
||
| 11 | * |
||
| 12 | * @var array |
||
| 13 | */ |
||
| 14 | protected $fillable = [ |
||
| 15 | 'name', |
||
| 16 | 'email', |
||
| 17 | 'password', |
||
| 18 | ]; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * The attributes excluded from the model's JSON form. |
||
| 22 | * |
||
| 23 | * @var array |
||
| 24 | */ |
||
| 25 | protected $hidden = [ |
||
| 26 | 'password', |
||
| 27 | 'remember_token', |
||
| 28 | ]; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * The Gravatar for the user. |
||
| 32 | * |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | public function getAvatarAttribute() |
||
| 39 | } |
||
| 40 |