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>
This commit is contained in:
Callum McIntyre 2012-08-19 14:50:05 +01:00
parent 7298c93be1
commit 63fe95dadc
1 changed files with 1 additions and 1 deletions

View File

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