记录关于 notification 的一些方法
2019-05-22 本文已影响0人
熊航
$user->notifications()->get() // 获取所有的通知
$user->readNotifications()->get() // 获取已读
$user->unreadNotifications()->get() // 获取未读
$user->unreadNotifications->markAsRead() // 将未读标记为已读
$user->readNotifications->markAsUnread() // 将已读标记为未读