turtle-wow-source-kinda/Dumps/Source Code/8 - Development_website/develop/app/Models/BanAppealMessage.php
Brian Oost a1d5bb70b2 Init
2024-08-06 18:06:40 +02:00

31 lines
608 B
PHP

<?php
namespace App\Models;
use App\Models\auth\Account;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class BanAppealMessage extends Model
{
use HasFactory;
protected $fillable = [
'ban_appeal_id',
'account_id',
'message',
'seen',
'support'
];
public function account()
{
return $this->setConnection('mysql2')->belongsTo(Account::class, 'account_id', 'id');
}
public function banAppeal()
{
return $this->belongsTo(BanAppeal::class, 'id', 'ban_appeal_id');
}
}