From 63fe95dadc3880839a139e0dc50ba749ae01d640 Mon Sep 17 00:00:00 2001 From: Callum McIntyre Date: Sun, 19 Aug 2012 14:50:05 +0100 Subject: [PATCH] Changed timestamp function in database/eloquent/model.php from protected to public. Allows eloquent model timestamps to be updated without actually changing any data. git push fork minor/unprotect-eloquent-timestamps git status git # Signed-off-by: Callum McIntyre --- laravel/database/eloquent/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laravel/database/eloquent/model.php b/laravel/database/eloquent/model.php index 61a7769c..d3d70fbb 100644 --- a/laravel/database/eloquent/model.php +++ b/laravel/database/eloquent/model.php @@ -445,7 +445,7 @@ public function delete() * * @return void */ - protected function timestamp() + public function timestamp() { $this->updated_at = new \DateTime;