laravel/laravel — pull request #1169 by mcintyre94 (2012-09-03 20:59:52+00:00)
Title: Added new touch function to eloquent, updates timestamps and immediately saves

(Expands on https://github.com/laravel/laravel/pull/1121)
Adds functionality to Eloquent to update a model's timestamps, but no other data, and then immediately save the model using $model->touch(). Used when a model is accessed but not modified, but the modified_at time should still be adjusted.

Signed-off-by: Callum McIntyre