lastfm = $lastfm; $this->currentUser = $currentUser; } public function setSessionKey(LastfmSetSessionKeyRequest $request) { $this->lastfm->setUserSessionKey($this->currentUser, trim($request->key)); return response()->json(null, Response::HTTP_NO_CONTENT); } public function disconnect() { $this->lastfm->setUserSessionKey($this->currentUser, null); return response()->json(null, Response::HTTP_NO_CONTENT); } }