public setAttribute ( mixed $name, mixed $value ) | ||
$name | mixed | |
$value | mixed |
public function setAttribute($name, $value)
{
$this->model->{$name} = $value;
if (!in_array($name, $this->changedAttributes)) {
$this->changedAttributes[] = $name;
}
}