1 | <?php |
||
2 | |||
3 | namespace App; |
||
4 | |||
5 | use Illuminate\Notifications\Notifiable; |
||
6 | use Illuminate\Contracts\Auth\MustVerifyEmail; |
||
7 | use Illuminate\Foundation\Auth\User as Authenticatable; |
||
8 | use Silber\Bouncer\Database\HasRolesAndAbilities; |
||
9 | |||
10 | class User extends Authenticatable |
||
11 | { |
||
12 | use Notifiable; |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
13 | use HasRolesAndAbilities; |
||
14 | |||
15 | /** |
||
16 | * The attributes that are mass assignable. |
||
17 | * |
||
18 | * @var array |
||
19 | */ |
||
20 | protected $fillable = [ |
||
21 | 'name', 'email', 'password', |
||
22 | ]; |
||
23 | |||
24 | /** |
||
25 | * The attributes that should be hidden for arrays. |
||
26 | * |
||
27 | * @var array |
||
28 | */ |
||
29 | protected $hidden = [ |
||
30 | 'password', 'remember_token', |
||
31 | ]; |
||
32 | |||
33 | /** |
||
34 | * The attributes that should be cast to native types. |
||
35 | * |
||
36 | * @var array |
||
37 | */ |
||
38 | protected $casts = [ |
||
39 | 'email_verified_at' => 'datetime', |
||
40 | ]; |
||
41 | } |
||
42 |