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');