private function authenticateUser(User $user) { // add this session id to the users list of sessions $userSession = new UserSession(array("session_id" => Session::getId())); $user->userSessions()->save($userSession); $this->updateLastCosignUser(); return true; }