/** * Mark as read all unseen notifications */ public function seen() { $notifications = Notification::getNotificationsBySeen(); foreach ($notifications as $notification) { $notification->seen = 1; $notification->save(); } }
/** * Mark as read all unseen notifications */ public function seen() { $notifications = Notification::getNotificationsBySeen(); foreach ($notifications as $notification) { $notification->seen = 1; $notification->save(); } }