Fixes setup and mass assignment of username. Closes #69

This commit is contained in:
James Brooks
2014-12-04 22:33:15 +00:00
parent 70e95f6123
commit 2493da017f
2 changed files with 8 additions and 3 deletions
+6 -2
View File
@@ -11,18 +11,22 @@ class User extends Eloquent implements UserInterface, RemindableInterface {
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'users';
/**
* The attributes excluded from the model's JSON form.
*
* @var array
*/
protected $hidden = ['password', 'remember_token'];
/**
* Items which can be mass assigned.
* @var array
*/
protected $fillable = ['username'];
/**
* Hash any password being inserted by default
*