src/Magniloquent/Magniloquent/Magniloquent.php
public function setAttribute($key, $value)
    {
        if ($this->valid && $key != $this->getKeyName() && ! in_array($key, $this->getDates()))
            $this->valid = false;

        return parent::setAttribute($key, $value);
    }
public function setAttribute($key, $value)
    {
        if ($this->valid && $key != $this->getKeyName() && ! in_array($key, $this->getDates()))
            $this->valid = false;

        return parent::setAttribute($key, $value);
    }
Set a given attribute on the model.

@param  string $key
@param  mixed  $value

@return void