public function newInstanceWithOldInput() { $instance = new static(); foreach (\Input::old() as $key => $value) { if (\Schema::hasColumn($instance->getTable(), $key)) { $instance->{$key} = $value; } } return $instance; }