客户端消息通知

This commit is contained in:
mzl
2025-08-21 19:26:28 +08:00
parent c1de258ce2
commit 5dc515f712
5 changed files with 184 additions and 11 deletions
@@ -90,4 +90,9 @@ class MessageNotifications extends Model
return $this->hasMany(MessageUserStatus::class, 'msg_id', 'id')
->where('status', 0);
}
public function sender()
{
return $this->belongsTo(User::class, 'sender_id', 'id');
}
}
+2 -2
View File
@@ -32,10 +32,10 @@ class MessageUserStatus extends Model
*
* @var bool
*/
public $timestamps = true;
public $timestamps = false;
protected $dateFormat = 'U';
// protected $dateFormat = 'U';
/**
* 允许自动填充模型字段