diff --git a/laravel/database/eloquent/query.php b/laravel/database/eloquent/query.php index 11eec542..e438f56d 100644 --- a/laravel/database/eloquent/query.php +++ b/laravel/database/eloquent/query.php @@ -122,6 +122,8 @@ public function hydrate($model, $results, $include = true) $new->$key = $value; } + $new->original = $new->attributes; + $models[$result[$this->model->key()]] = $new; }