get('user'); return $this->where('store_id', $users['store_id']) ->groupStart() ->where('forgroup', $users['group_name']) ->orWhere('forgroup', strtolower('TOUS')) ->groupEnd() ->where('is_read', 0) ->orderBy('created_at', 'DESC') ->findAll(); } public function markAsRead(int $id) { return $this->update($id, ['is_read' => 1]); } public function insertNotification(array $data) { return $this->insert($data); } }