Initialer Laravel Commit für BetiX
This commit is contained in:
29
app/Models/ChatMessageReport.php
Normal file
29
app/Models/ChatMessageReport.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class ChatMessageReport extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'reporter_id',
|
||||
'message_id',
|
||||
'message_text',
|
||||
'sender_id',
|
||||
'sender_username',
|
||||
'reason',
|
||||
'context_messages',
|
||||
'status',
|
||||
'admin_note',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'context_messages' => 'array',
|
||||
];
|
||||
|
||||
public function reporter()
|
||||
{
|
||||
return $this->belongsTo(User::class, 'reporter_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user