From 63291574c1aaabecdbff1cbe52d13dbb0d998bf5 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Tue, 13 Apr 2021 08:49:50 +0200 Subject: Update to Laravel 5.7 --- app/RandomLog.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/RandomLog.php') 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(); }); -- cgit v1.2.3