aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorCamil Staps2021-04-13 08:49:50 +0200
committerCamil Staps2021-04-13 08:49:50 +0200
commit63291574c1aaabecdbff1cbe52d13dbb0d998bf5 (patch)
tree82ccc6756bad7e34efe42aa53498ae33528d6ff2 /app
parentUpdate to Laravel 5.6 (diff)
Update to Laravel 5.7
Diffstat (limited to 'app')
-rw-r--r--app/RandomLog.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/RandomLog.php b/app/RandomLog.php
index c0d22a8..6d77570 100644
--- a/app/RandomLog.php
+++ b/app/RandomLog.php
@@ -27,6 +27,8 @@ class RandomLog extends Model {
protected $fillable = ['request', 'response'];
public static function boot() {
+ parent::boot();
+
static::creating(function ($model) {
$model->created_at = $model->freshTimestamp();
});