新增聊天室发送图片功能
This commit is contained in:
@@ -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>
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user