新增聊天室发送图片功能

This commit is contained in:
2026-04-12 14:04:18 +08:00
parent d2f08eb2dd
commit 00b9396dea
10 changed files with 547 additions and 42 deletions
+9 -1
View File
@@ -14,6 +14,10 @@ namespace App\Models;
use Illuminate\Database\Eloquent\Model;
/**
* 聊天消息模型
* 负责承载聊天室文本消息、图片消息与过期图片占位消息。
*/
class Message extends Model
{
/**
@@ -29,11 +33,15 @@ class Message extends Model
'is_secret',
'font_color',
'action',
'message_type',
'image_path',
'image_thumb_path',
'image_original_name',
'sent_at',
];
/**
* Get the attributes that should be cast.
* 返回模型字段的类型转换配置。
*
* @return array<string, string>
*/