Commit 63fe95da by Callum McIntyre

Changed timestamp function in database/eloquent/model.php from protected to…

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>
parent 7298c93b
...@@ -445,7 +445,7 @@ abstract class Model { ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment