]> git.localhorst.tv Git - alttp.git/blobdiff - app/Models/User.php
add discord auth
[alttp.git] / app / Models / User.php
index 89963686eb21407d17eea9a5871d88658ff32d2b..7f216edbbe8addd8a0600ee43e6921b6a40310e7 100644 (file)
@@ -2,12 +2,12 @@
 
 namespace App\Models;
 
-use Illuminate\Contracts\Auth\MustVerifyEmail;
 use Illuminate\Database\Eloquent\Factories\HasFactory;
 use Illuminate\Foundation\Auth\User as Authenticatable;
 use Illuminate\Notifications\Notifiable;
 use Laravel\Sanctum\HasApiTokens;
 
+
 class User extends Authenticatable
 {
     use HasApiTokens, HasFactory, Notifiable;
@@ -15,30 +15,44 @@ class User extends Authenticatable
     /**
      * The attributes that are mass assignable.
      *
-     * @var array<int, string>
+     * @var string[]
      */
     protected $fillable = [
-        'name',
+        'id',
+        'username',
+        'discriminator',
         'email',
-        'password',
+        'avatar',
+        'verified',
+        'locale',
+        'mfa_enabled',
+        'refresh_token'
     ];
 
     /**
      * The attributes that should be hidden for serialization.
      *
-     * @var array<int, string>
+     * @var array
      */
     protected $hidden = [
-        'password',
+        'refresh_token',
         'remember_token',
     ];
 
     /**
      * The attributes that should be cast.
      *
-     * @var array<string, string>
+     * @var array
      */
     protected $casts = [
-        'email_verified_at' => 'datetime',
+        'id' => 'string',
+        'username' => 'string',
+        'discriminator' => 'string',
+        'email' => 'string',
+        'avatar' => 'string',
+        'verified' => 'boolean',
+        'locale' => 'string',
+        'mfa_enabled' => 'boolean',
+        'refresh_token' => 'encrypted',
     ];
 }