marko/notification-database
最新稳定版本:0.6.0
Composer 安装命令:
composer require marko/notification-database
包简介
Database-backed notification storage for the Marko Framework
README 文档
README
Database notification storage — persist, query, and manage notification read state in the database.
Installation
composer require marko/notification-database
Quick Example
use Marko\Notification\Database\Repository\NotificationRepositoryInterface; public function __construct( private NotificationRepositoryInterface $notificationRepository, ) {} // Fetch all notifications for a user $notifications = $this->notificationRepository->forNotifiable($user); // Count unread $count = $this->notificationRepository->unreadCount($user); // Mark all as read $this->notificationRepository->markAllAsRead($user);
Documentation
Full usage, API reference, and examples: marko/notification-database
统计信息
- 总下载量: 36
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-24