public function clear($attribute) { if (!isset($this->attributes[$attribute])) { return $this; } $this->removeAttribute($attribute); return $this; }