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 <[email protected]>
This commit is contained in:
Callum McIntyre
2012-08-19 14:50:05 +01:00
parent 7298c93be1
commit 63fe95dadc
+1 -1
View File
@@ -445,7 +445,7 @@ abstract class Model {
*
* @return void
*/
protected function timestamp()
public function timestamp()
{
$this->updated_at = new \DateTime;