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:
parent
7298c93be1
commit
63fe95dadc
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue