/** * Revoke an existing authentication. */ public function revokeAuthentication() { $this->user = null; $this->setAuthenticated(false); $this->session->remove('auth'); }
/** * Write messages stored on ourself to the session * * @return $this */ protected function writeToSession() { $this->session->set('messages', $this->messages); return $this; }