*/ protected $fillable = [ 'rz_username', 'full_name', 'organisation_unit', 'has_admin_privileges', 'hashed_password' ]; //Timestamps are disabled. public $timestamps = false; /** * The attributes that should be hidden for serialization. * * @var array */ protected $hidden = [ 'hashed_password', //'remember_token', ]; /** * The attributes that should be cast. * * @var array */ //protected $casts = [ // 'email_verified_at' => 'datetime', //]; //override variable 'password' public function getAuthPassword() { return $this->hashed_password; } }