From 7b65cef6bfddc9af921f070f60d5cacebabe08da Mon Sep 17 00:00:00 2001 From: Shift Date: Mon, 24 Oct 2022 17:28:55 +0000 Subject: [PATCH] Convert deprecated `$dates` property to `$casts` --- app/Models/AuthLog.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Models/AuthLog.php b/app/Models/AuthLog.php index 100191a295..856473f000 100644 --- a/app/Models/AuthLog.php +++ b/app/Models/AuthLog.php @@ -31,5 +31,7 @@ class AuthLog extends Model { public $timestamps = false; protected $table = 'authlog'; - protected $dates = ['datetime']; + protected $casts = [ + 'datetime' => 'datetime', + ]; }