$this->unreadNotifications->markAsRead ();里面的 unreadNotifications 是什么?
这里的$this->unreadNotifications
指的是什么呢
public function markAsRead()
{
$this->notification_count = 0;
$this->save();
$this->unreadNotifications->markAsRead();
}
推荐文章: