Browse Source

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 <mcintyre1994@gmail.com>

Callum McIntyre 12 years ago
parent
commit
63fe95dadc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      laravel/database/eloquent/model.php

+ 1 - 1
laravel/database/eloquent/model.php

@@ -445,7 +445,7 @@ abstract class Model {
 	 *
 	 *
 	 * @return void
 	 * @return void
 	 */
 	 */
-	protected function timestamp()
+	public function timestamp()
 	{
 	{
 		$this->updated_at = new \DateTime;
 		$this->updated_at = new \DateTime;