1 | <?php |
||
2 | |||
3 | /** |
||
4 | * User.php |
||
5 | * Copyright (c) 2020 [email protected] |
||
6 | * |
||
7 | * This file is part of the Firefly III CSV importer |
||
8 | * (https://github.com/firefly-iii/csv-importer). |
||
9 | * |
||
10 | * This program is free software: you can redistribute it and/or modify |
||
11 | * it under the terms of the GNU Affero General Public License as |
||
12 | * published by the Free Software Foundation, either version 3 of the |
||
13 | * License, or (at your option) any later version. |
||
14 | * |
||
15 | * This program is distributed in the hope that it will be useful, |
||
16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
18 | * GNU Affero General Public License for more details. |
||
19 | * |
||
20 | * You should have received a copy of the GNU Affero General Public License |
||
21 | * along with this program. If not, see <https://www.gnu.org/licenses/>. |
||
22 | */ |
||
23 | |||
24 | declare(strict_types=1); |
||
25 | |||
26 | namespace App; |
||
27 | |||
28 | use Illuminate\Foundation\Auth\User as Authenticatable; |
||
29 | use Illuminate\Notifications\Notifiable; |
||
30 | |||
31 | /** |
||
32 | * Class User |
||
33 | */ |
||
34 | class User extends Authenticatable |
||
35 | { |
||
36 | use Notifiable; |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
37 | |||
38 | /** |
||
39 | * The attributes that are mass assignable. |
||
40 | * |
||
41 | * @var array |
||
42 | */ |
||
43 | protected $fillable |
||
44 | = [ |
||
45 | 'name', 'email', 'password', |
||
46 | ]; |
||
47 | |||
48 | /** |
||
49 | * The attributes that should be hidden for arrays. |
||
50 | * |
||
51 | * @var array |
||
52 | */ |
||
53 | protected $hidden |
||
54 | = [ |
||
55 | 'password', 'remember_token', |
||
56 | ]; |
||
57 | |||
58 | /** |
||
59 | * The attributes that should be cast to native types. |
||
60 | * |
||
61 | * @var array |
||
62 | */ |
||
63 | protected $casts |
||
64 | = [ |
||
65 | 'email_verified_at' => 'datetime', |
||
66 | ]; |
||
67 | } |
||
68 |