From 98e557a840dd20663067ef19ce5bf1cef48eec3f Mon Sep 17 00:00:00 2001 From: Miguel N Date: Mon, 7 Sep 2020 23:42:09 +0100 Subject: [PATCH] Update ban dates --- app/Ban.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/Ban.php b/app/Ban.php index 970b4c2..c1a6e90 100644 --- a/app/Ban.php +++ b/app/Ban.php @@ -8,7 +8,7 @@ class Ban extends Model { public $fillable = [ - + 'userID', 'reason', 'bannedUntil', @@ -16,7 +16,11 @@ class Ban extends Model 'authorUserID' ]; - + + public $dates = [ + 'bannedUntil' + ]; + public function user() { return $this->belongsTo('App\User', 'userID', 'id');