staffmanager/app/Ban.php

26 lines
344 B
PHP
Raw Permalink Normal View History

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