From dd58bdfff60aeca499a1cc7290ac2fbeea2c5aad Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Mon, 25 Jan 2016 19:18:22 -0500 Subject: [PATCH] fixes setting user administrative status; closes #45 --- app/Models/User.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/User.php b/app/Models/User.php index 0d9766a6d..1bef85b47 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -51,11 +51,11 @@ class User extends Model implements AuthenticatableContract, protected $table = 'users'; /** - * The attributes that are mass assignable. + * The attributes that are not mass assignable. * * @var array */ - protected $fillable = ['name', 'email', 'password', 'use_totp', 'totp_secret', 'language']; + protected $guarded = ['id', 'remeber_token', 'created_at', 'updated_at']; /** * The attributes excluded from the model's JSON form.