Fixes setup and mass assignment of username. Closes #69
This commit is contained in:
+6
-2
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user