Skip to content

Commit dd58bdf

Browse files
committed
fixes setting user administrative status; closes pterodactyl#45
1 parent 4d99d57 commit dd58bdf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Models/User.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ class User extends Model implements AuthenticatableContract,
5151
protected $table = 'users';
5252

5353
/**
54-
* The attributes that are mass assignable.
54+
* The attributes that are not mass assignable.
5555
*
5656
* @var array
5757
*/
58-
protected $fillable = ['name', 'email', 'password', 'use_totp', 'totp_secret', 'language'];
58+
protected $guarded = ['id', 'remeber_token', 'created_at', 'updated_at'];
5959

6060
/**
6161
* The attributes excluded from the model's JSON form.

0 commit comments

Comments
 (0)