Update ban dates

This commit is contained in:
Miguel Nogueira 2020-09-07 23:42:09 +01:00
parent 95bf7c239e
commit 98e557a840
1 changed files with 6 additions and 2 deletions

View File

@ -8,7 +8,7 @@ class Ban extends Model
{ {
public $fillable = [ public $fillable = [
'userID', 'userID',
'reason', 'reason',
'bannedUntil', 'bannedUntil',
@ -16,7 +16,11 @@ class Ban extends Model
'authorUserID' 'authorUserID'
]; ];
public $dates = [
'bannedUntil'
];
public function user() public function user()
{ {
return $this->belongsTo('App\User', 'userID', 'id'); return $this->belongsTo('App\User', 'userID', 'id');