rbrecruiter/app/Ban.php

26 lines
344 B
PHP

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