/** * Set a value to an attribute. * * @return self */ public function setAttribute($name, $value) { $this->attributes->set($name, $value); return $this; }