lastfmService = $lastfmService; $this->currentUser = $currentUser; } public function store(ScrobbleStoreRequest $request, Song $song) { if (!$song->artist->is_unknown && $this->currentUser->connectedToLastfm()) { ScrobbleJob::dispatch($this->currentUser, $song, (int) $request->timestamp); } return response()->json(null, Response::HTTP_NO_CONTENT); } }