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;
11 class User extends Authenticatable
13 use HasApiTokens, HasFactory, Notifiable;
16 * The attributes that are mass assignable.
20 protected $fillable = [
33 * The attributes that should be hidden for serialization.
43 * The attributes that should be cast.
49 'username' => 'string',
50 'discriminator' => 'string',
53 'verified' => 'boolean',
55 'mfa_enabled' => 'boolean',
56 'refresh_token' => 'encrypted',