1 | <?php namespace App\Models; |
||
31 | class User extends Authenticatable |
||
32 | { |
||
33 | use Notifiable, HasApiTokens, CanActivate, CanResetPassword, SoftDeletes; |
||
34 | |||
35 | /** |
||
36 | * The attributes excluded from the model's JSON form. |
||
37 | * |
||
38 | * @var array |
||
39 | */ |
||
40 | protected $hidden = ['password', 'remember_token']; |
||
41 | |||
42 | /** |
||
43 | * The attributes that are mass assignable. |
||
44 | * |
||
45 | * @var array |
||
46 | */ |
||
47 | protected $fillable = ['name', 'email', 'password']; |
||
48 | |||
49 | /** |
||
50 | * Soft-deletes enabled. |
||
51 | * |
||
52 | * @var array |
||
53 | */ |
||
54 | protected $dates = ['deleted_at']; |
||
55 | |||
56 | /** |
||
57 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
58 | */ |
||
59 | public function linkedAccounts() |
||
63 | |||
64 | /** |
||
65 | * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany |
||
66 | */ |
||
67 | public function files() |
||
71 | } |
||
72 |