Initial commit
Some checks failed
Deploy / deploy (push) Has been cancelled

This commit is contained in:
ssww23
2026-03-10 00:55:37 +03:00
parent fc0f28d830
commit 93a655235a
155 changed files with 24768 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class ChatMessage extends Model
{
use HasFactory;
protected $fillable = [
'chat_conversation_id',
'sender',
'body',
'is_read',
];
protected function casts(): array
{
return [
'is_read' => 'boolean',
];
}
public function conversation()
{
return $this->belongsTo(ChatConversation::class, 'chat_conversation_id');
}
}