each(function ($notification) { $notification->markAsRead(); }); } /** * Mark all notifications as unread. * * @return void */ public function markAsUnread() { $this->each(function ($notification) { $notification->markAsUnread(); }); } }