getBuilder()->where('user_id', $user)->get($this->getColumns()); } /** * Delete a session for a given user. * * @param int $user * @param int $session * @return null|int */ public function deleteUserSession(int $user, int $session) { return $this->getBuilder()->where('user_id', $user)->where('id', $session)->delete(); } }