getLoginUser(); $notifyRepo = new NotificationRepo(); $notifyRepo->markAllAsViewed($user->id); } }