staffmanager/app/Ban.php

30 lines
384 B
PHP
Raw Normal View History

<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Ban extends Model
{
public $fillable = [
2020-09-07 22:42:09 +00:00
'userID',
'reason',
'bannedUntil',
'userAgent',
'authorUserID'
];
2020-09-07 22:42:09 +00:00
public $dates = [
'bannedUntil'
];
public function user()
{
return $this->belongsTo('App\User', 'userID', 'id');
}
}