Use $guarded property on user

This commit is contained in:
James Brooks
2014-12-04 23:40:28 +00:00
parent b38d23b91b
commit d2046afc33

View File

@@ -22,17 +22,10 @@ class User extends Eloquent implements UserInterface, RemindableInterface {
protected $hidden = ['password', 'remember_token'];
/**
* Items which can be mass assigned.
* Items which cannot be mass assigned.
* @var array
*/
protected $fillable = [
'username',
'password',
'email',
'remember_token',
'active',
'level',
];
protected $guarded = [];
/**
* Hash any password being inserted by default