mirror of
https://github.com/Deathgarden-Rebirth/Deathgarden_Rebirth-Rewrite.git
synced 2026-09-08 03:06:03 -05:00
33 lines
632 B
PHP
33 lines
632 B
PHP
<?php
|
|
|
|
namespace App\Models\Admin;
|
|
|
|
use App\Models\User\User;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
/**
|
|
* @mixin IdeHelperBadChatMessage
|
|
*/
|
|
class BadChatMessage extends Model
|
|
{
|
|
protected $casts = [
|
|
'handled' => 'bool',
|
|
];
|
|
|
|
public function user(): BelongsTo
|
|
{
|
|
return $this->belongsTo(User::class);
|
|
}
|
|
|
|
public function handledBy(): BelongsTo
|
|
{
|
|
return $this->belongsTo(User::class, 'handled_by_id');
|
|
}
|
|
|
|
public function hostUser(): BelongsTo
|
|
{
|
|
return $this->belongsTo(User::class, 'host_user_id');
|
|
}
|
|
}
|