diff --git a/app/Models/Account.php b/app/Models/Account.php index bbe026266a64..f944a6abf3ce 100644 --- a/app/Models/Account.php +++ b/app/Models/Account.php @@ -1,4 +1,4 @@ - 'required|unique:users', - 'password' => 'required|between:6,32|confirmed', - 'password_confirmation' => 'between:6,32', - */ - ); - - protected $updateRules = array( - /* - 'email' => 'required|unique:users', - 'username' => 'required|unique:users', - */ - ); - /** * The database table used by the model. * @@ -30,6 +19,22 @@ class User extends ConfideUser implements UserInterface, RemindableInterface */ protected $table = 'users'; + + /** + * The attributes that are mass assignable. + * + * @var array + */ + protected $fillable = ['email', 'password','agency_id']; + + /** + * The attributes excluded from the model's JSON form. + * + * @var array + */ + protected $hidden = ['password', 'remember_token']; + + public function account() { return $this->belongsTo('Account');