/** * Logs out user * * @return array */ protected function handleDELETE() { Session::logout(); //Clear everything in session. Session::flush(); return ['success' => true]; }