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