PHP code example of tantupix / offinotify
1. Go to this page and download the library: Download tantupix/offinotify library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tantupix / offinotify example snippets
use Offinotify;
// 发送站内信
Offinotify::send($type, $notifiable, trigger, array $attributes = []);
// 站内信列表
Offinotify::notifications();
// 已读站内信列表
Offinotify::readNotifications();
// 未读站内信列表
Offinotify::unreadNotifications();
// 一键标记已读
Offinotify::markAsRead();
// 阅读一条站内信
Offinotify::show($id);
// 未读站内信数量
Offinotify::unreadCount();
// 删除已读站内信
Offinotify::destroy();
// 更新站内信内容
Offinotify::updateNotifications($class, $id, array $data = []);