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

View File

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