]> git.localhorst.tv Git - alttp.git/blob - app/Models/User.php
add model dummies
[alttp.git] / app / Models / User.php
1 <?php
2
3 namespace App\Models;
4
5 use Illuminate\Database\Eloquent\Factories\HasFactory;
6 use Illuminate\Foundation\Auth\User as Authenticatable;
7 use Illuminate\Notifications\Notifiable;
8 use Laravel\Sanctum\HasApiTokens;
9
10
11 class User extends Authenticatable
12 {
13         use HasApiTokens, HasFactory, Notifiable;
14
15         /**
16          * The attributes that are mass assignable.
17          *
18          * @var string[]
19          */
20         protected $fillable = [
21                 'id',
22                 'username',
23                 'discriminator',
24                 'email',
25                 'avatar',
26                 'verified',
27                 'locale',
28                 'mfa_enabled',
29                 'refresh_token',
30                 'role',
31         ];
32
33         /**
34          * The attributes that should be hidden for serialization.
35          *
36          * @var array
37          */
38         protected $hidden = [
39                 'refresh_token',
40                 'remember_token',
41         ];
42
43         /**
44          * The attributes that should be cast.
45          *
46          * @var array
47          */
48         protected $casts = [
49                 'id' => 'string',
50                 'username' => 'string',
51                 'discriminator' => 'string',
52                 'email' => 'string',
53                 'avatar' => 'string',
54                 'verified' => 'boolean',
55                 'locale' => 'string',
56                 'mfa_enabled' => 'boolean',
57                 'refresh_token' => 'encrypted',
58         ];
59 }